On 2/14/19 12:38 PM, Craig Scott wrote:
I think you might be looking for the LINK_DEPENDS_NO_SHARED target property (or more likely its associated CMAKE_LINK_DEPENDS_NO_SHARED variable).

Following with my example, I've added the following line to the file Hello/CMakeLists.txt:

set_target_properties(Hello PROPERTIES LINK_DEPENDS_NO_SHARED true)

However it has no effect. Touching the file Hello/hello.cpp will still cause the "Linking CXX executable helloDemo" step to be performed.

I've also tried adding the same line to the CMakeLists.txt file in the root directory, it also had no effect.

Thank you,



Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 

Follow this link to subscribe/unsubscribe:

Reply via email to