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,
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)
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
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