[CMake] Removing Transitively Inherited Properties

2018-02-06 Thread Geogin Varghese
What is the recommended way of removing transitively inherited attributes for a target. Example: target_link_libraries(A PRIVATE B) target_compile_options(B PUBLIC -Werror) How should the -Werror option be removed from target A. -- Powered by www.kitware.com Please keep messages on-topic and

Re: [CMake] modularizing, specifying dependencies in a project

2018-01-03 Thread Geogin Varghese
sts.txt > @@ -1,4 +1,3 @@ > -include(${CMAKE_CURRENT_LIST_DIR}/../ModC/CMakeLists.txt) > > add_library(ModB b.cpp) > target_link_libraries(ModB > > On Wed, Jan 3, 2018 at 1:46 PM, Geogin Varghese <geo...@gmail.com> wrote: >> Hello, >> >> Recently came across these presentat

[CMake] modularizing, specifying dependencies in a project

2018-01-03 Thread Geogin Varghese
Hello, Recently came across these presentations on cmake: Using Modern CMake Patterns to Enforce a Good Modular Design (https://www.youtube.com/watch?v=bsXLMQ6WgIk) Effective CMake (https://www.youtube.com/watch?v=eC9-iRN2b04) They encourage using target_* command variants for scripting