[cmake-developers] [CMake] 2.8.11-rc3 generator expression error
Stephen Kelly
steveire at gmail.com
Fri Apr 26 10:39:13 EDT 2013
Brad King <brad.king at ...> writes:
> I looked into implementing this and realized that we're not propagating
> usage requirements from the entire link closure, only from the direct
> dependencies.
Are you sure? Maybe I don't understand what you mean. Can you post a code
snippet?
add_library(foo SHARED empty.cpp)
target_include_directories(foo INTERFACE /opt/foo)
add_library(bar SHARED empty.cpp)
add_library(sho SHARED empty.cpp)
target_link_libraries(sho bar)
target_link_libraries(bar foo)
$ cat CMakeFiles/sho.dir/flags.make
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 2.8
# compile CXX with /usr/lib/icecc/bin/c++
CXX_FLAGS = -fPIC -I/opt/foo
CXX_DEFINES = -Dsho_EXPORTS
Thanks,
Steve.
More information about the cmake-developers
mailing list