Error: Unknown CMake command "SET_LIBRARY_TARGET_PROPERTIES"

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Error: Unknown CMake command "SET_LIBRARY_TARGET_PROPERTIES"

Postby anesin1109 » Wed May 18, 2016 3:34 am

I'm building JCEF in Mac, using Xcode.
And I'm getting error like this:
CMake Error at third_party/cef/macosx64/libcef_dll/CMakeLists.txt:608 (SET_LIBRARY_TARGET_PROPERTIES):
Unknown CMake command "SET_LIBRARY_TARGET_PROPERTIES".

How can I fix it?
anesin1109
Newbie
 
Posts: 1
Joined: Wed May 18, 2016 3:28 am

Re: Error: Unknown CMake command "SET_LIBRARY_TARGET_PROPERT

Postby magreenblatt » Wed May 18, 2016 10:22 am

Use the correct CEF version. See third_party/cef/README.jcef.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Error: Unknown CMake command "SET_LIBRARY_TARGET_PROPERT

Postby kavadog » Tue Jun 07, 2016 6:03 pm

I'm seeing this same error message when trying to run CMAKE to configure cefclient build on Windows 10 CEF version 2704.1414. It appears that the issue is the addition of the line #SET_LIBRARY_TARGET_PROPERTIES(libcef_dll_wrapper) in libcef_dll/CMakeList.txt. This new line wasn't in 2526 but is in 2704 and is breaking CMake since this isn't a valid CMake command.

Any help/ideas would be appreicated.
kavadog
Techie
 
Posts: 28
Joined: Mon Jul 27, 2015 5:46 pm

Re: Error: Unknown CMake command "SET_LIBRARY_TARGET_PROPERT

Postby magreenblatt » Tue Jun 07, 2016 10:28 pm

The CMake configuration included with 2704 branch and newer has changed. You can either update your project to use the new configuration (recommended) or define an empty SET_LIBRARY_TARGET_PROPERTIES macro before including the libcef_dll directory. See https://bitbucket.org/chromiumembedded/ ... tion-cmake for details.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Error: Unknown CMake command "SET_LIBRARY_TARGET_PROPERT

Postby WarWolfen » Thu Jun 09, 2016 8:38 am

Hello!

I am fairly new to this topic and I am trying to create a binary file to use in my java project.
I have managed to come up to this point, but now I do not really know what to do. Can you elaborate on
"You can either update your project to use the new configuration (recommended)"
for me? I am not sure what exactly I need to do.

Thank you very much!
Christian
WarWolfen
Newbie
 
Posts: 2
Joined: Thu Jun 09, 2016 8:35 am

Re: Error: Unknown CMake command "SET_LIBRARY_TARGET_PROPERT

Postby magreenblatt » Thu Jun 09, 2016 12:34 pm

WarWolfen wrote:Hello!

I am fairly new to this topic and I am trying to create a binary file to use in my java project.
I have managed to come up to this point, but now I do not really know what to do. Can you elaborate on
"You can either update your project to use the new configuration (recommended)"
for me? I am not sure what exactly I need to do.

Thank you very much!
Christian

Are you using JCEF? If so, you need to use the CEF version from the third_party/cef/README.jcef file and you will not have this issue.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: Error: Unknown CMake command "SET_LIBRARY_TARGET_PROPERT

Postby WarWolfen » Thu Jun 09, 2016 1:03 pm

Hi!

Thank you, that helped me out!
WarWolfen
Newbie
 
Posts: 2
Joined: Thu Jun 09, 2016 8:35 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 86 guests

cron