Re: [CMake] Is it possible for a dependee to use the dependency LINKER_FLAGS ?

2014-08-08 Thread Adrian M Negreanu
r that > library and add the lines above to adjust the CMAKE_EXE_LINKER_FLAGS only > in that CMakeLists.txt. Then you would have to do and > add_subdirectory(special_lib) somewhere in your higher level CMakeLists.txt. > > -- > Glenn > > > > On 3 August 2014 07:43,

Re: [CMake] Is it possible for a dependee to use the dependency LINKER_FLAGS ?

2014-08-02 Thread Adrian M Negreanu
gling the concept is called Usage > Requirements. > On Aug 2, 2014 8:11 AM, "Glenn Coombs" wrote: > >> I think that you can use the target_link_libraries command to do this: >> >> add_library(A a.cpp) >> target_link_libraries(A INTERFACE -custom-flags)

[CMake] Is it possible for a dependee to use the dependency LINKER_FLAGS ?

2014-07-30 Thread Adrian M Negreanu
Hi, Is it possible to attach a property on a target, and that property to be used whenever the target is used ? ex: add_library(A a.cpp) somehow_attach_LINK_FLAGS(A "--custom-flags") # in a different directory add_executable(E e.cpp) target_link_libraries(E A) # ^--- this would do something si

[CMake] Who adds -lrt to ?

2014-04-13 Thread Adrian M Negreanu
Hi, I'm using android.toolchain.cmake to build a shared library. I'm not linking explicitly with rt anywhere but the lib still gets an -lrt. I assume cmake detects a dependency on -lrt and adds it. Is this true or coming from android.toolchain.cmake ? thanks -- Powered by www.kitware.com Pl