Custom project structure - CMAKE Error target_compile_option

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.

Re: Custom project structure - CMAKE Error target_compile_op

Postby kriskadespe » Thu Mar 29, 2018 2:21 pm

I follow your recommendation: I add "set(CMAKE_CONFIGURATION_TYPES Debug Release)" in my top-level CMakeLists.txt.
I still have the same error: can't oppen file 'libcef_lib.lib'
kriskadespe
Newbie
 
Posts: 7
Joined: Wed Mar 21, 2018 2:21 pm

Re: Custom project structure - CMAKE Error target_compile_op

Postby kriskadespe » Tue Apr 03, 2018 2:26 pm

It seems that it's a scope problem.
The "ADD_LOGICAL_TARGET" call the CMAKE function add_library but this library is not exported outside this file.
Adding "GLOBAL" fix the problem.

Thank for your help
kriskadespe
Newbie
 
Posts: 7
Joined: Wed Mar 21, 2018 2:21 pm

Previous

Return to Support Forum

Who is online

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