[CMake] cmp0065

2016-07-05 Thread J Decker
https://cmake.org/cmake/help/v3.4/policy/CMP0065.html while I like the idea it suggests, I don't use the flags for -rdynamic so this is meaningless to me https://cmake.org/cmake/help/v3.4/prop_tgt/ENABLE_EXPORTS.html#prop_tgt:ENABLE_EXPORTS SET_PROPERTY(TARGET ${project} APPEND PROPERTY COMP

[CMake] Disable removing generated file

2016-07-05 Thread Konstantin Podsvirov
Hello guys!How to disable removing generated file with clean target?My custom command generate or update file. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake commun

Re: [CMake] C header file cross dependency

2016-07-05 Thread Wagner Martin
Hi @all, I've finally found a solution to the problem. My solution is here: https://github.com/martinwag/test_cmake/tree/master What I did: - remove "OBJECT" library targets as they do not work in combination with interface libraries - added one install target per library, so I get one "lib*.a

Re: [CMake] Confusion over INTERFACE vs STATIC|SHARED IMPORTED vs INTERFACE IMPORTED

2016-07-05 Thread Ted Middleton
Ack - sorry. s/INTERFACE_LINK_LIBRARIES/IMPORTED_LOCATION/cg. INTERFACE_LINK_LIBRARIES I guess would be a completely valid property to set on an add_library(foo INTERFACE) target. But IMPORTED_LOCATION wouldn't, right? "INTERFACE IMPORTED would then mean there is no compiled binary to be linked ag

Re: [CMake] Confusion over INTERFACE vs STATIC|SHARED IMPORTED vs INTERFACE IMPORTED

2016-07-05 Thread Nicholas Braden
>From what I understand, interface libraries just don't have sources or build results. INTERFACE IMPORTED would then mean there is no compiled binary to be linked against, just as INTERFACE alone means there are no sources to create said binary from. At least, that is my understanding. > My unders

[CMake] Confusion over INTERFACE vs STATIC|SHARED IMPORTED vs INTERFACE IMPORTED

2016-07-05 Thread Ted Middleton
I'm looking at the documentation for add_library(), and I'm really confused about the distinction between add_library(foo INTERFACE) vs add_library(foo INTERFACE IMPORTED) vs add_library(foo IMPORTED). Correct me if I'm wrong (and I probably am), but add_library(foo INTERFACE) is for propagating

Re: [CMake] ImageMagick Not Found with CMake

2016-07-05 Thread Gonzalo
El 05/07/16 a las 15:05, Richard Kralik escribió: I am trying to install Theia-SfM (http://www.theia-sfm.org/index.html) using cmake 3.6 on Ubuntu 16.04. When trying to configure the project the output ends with Why can FindImageMagick not find convert and mogrify? My guess. Because they a

[CMake] ImageMagick Not Found with CMake

2016-07-05 Thread Richard Kralik
I am trying to install Theia-SfM (http://www.theia-sfm.org/index.html) using cmake 3.6 on Ubuntu 16.04. When trying to configure the project the output ends with -- Check for ImageMagick CMake Error at /usr/local/share/cmake-3.6/Modules/FindPackageHandleStandardArgs.cmake:148 (message): Could N