diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-07-25 07:12:28 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-07-26 14:58:25 (GMT) |
commit | b8dc7fad23a0b6867dae30e3cd6a23c82d6cfac9 (patch) | |
tree | 2e1bf0429e6c4413eddbfe064f97bf6b67ef3ce5 /Tests/RunCMake/Languages | |
parent | c8a10ba9ad8707cfb892ca812efa2f6899adf60b (diff) | |
download | CMake-b8dc7fad23a0b6867dae30e3cd6a23c82d6cfac9.zip CMake-b8dc7fad23a0b6867dae30e3cd6a23c82d6cfac9.tar.gz CMake-b8dc7fad23a0b6867dae30e3cd6a23c82d6cfac9.tar.bz2 |
Genex: Disallow LINKER_LANGUAGE only when used on a static library.
For shared libraries and executables, the linker_language is
indepenedent of the linked libraries.
Diffstat (limited to 'Tests/RunCMake/Languages')
-rw-r--r-- | Tests/RunCMake/Languages/LINK_LANGUAGE-genex.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/RunCMake/Languages/LINK_LANGUAGE-genex.cmake b/Tests/RunCMake/Languages/LINK_LANGUAGE-genex.cmake index d4e31cd..64f394c 100644 --- a/Tests/RunCMake/Languages/LINK_LANGUAGE-genex.cmake +++ b/Tests/RunCMake/Languages/LINK_LANGUAGE-genex.cmake @@ -1,4 +1,4 @@ -add_library(foo SHARED empty.cpp) -add_library(bar SHARED empty.cpp) +add_library(foo STATIC empty.cpp) +add_library(bar STATIC empty.cpp) target_link_libraries(foo $<$<STREQUAL:$<TARGET_PROPERTY:LINKER_LANGUAGE>,anything>:bar>) |