CMake: 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.

CMake: SET_LIBRARY_TARGET_PROPERTIES

Postby moien007 » Mon Jul 13, 2020 2:51 am

Hi, I'm trying to compile libcef_dll_wrapper using CMake.

This is what I've got:
- VS 2019
- CMake 3.17.3
- Standard Distro 83

During CMake configuration, I hit this error
Code: Select all
CMake Error at CMakeLists.txt:755 (SET_LIBRARY_TARGET_PROPERTIES):
  Unknown CMake command "SET_LIBRARY_TARGET_PROPERTIES".


I read that the solution is to add an empty macro for that, which I did at the very beginning of the file.
Code: Select all
macro(SET_LIBRARY_TARGET_PROPERTIES)
endmacro()


Now the configuration is done without any error but when I hit generate it'll lead to this error:
Code: Select all
CMake Error at CMakeLists.txt:734 (add_library):
  No SOURCES given to target: libcef_dll_wrapper


Thanks.
moien007
Newbie
 
Posts: 2
Joined: Mon Jul 13, 2020 2:41 am

Re: CMake: SET_LIBRARY_TARGET_PROPERTIES

Postby moien007 » Wed Jul 15, 2020 12:11 am

Solved, I had to use CMakeLists.txt in the root directory.
moien007
Newbie
 
Posts: 2
Joined: Mon Jul 13, 2020 2:41 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 64 guests