2013-06-04 18:25:47 +04:00
|
|
|
|
|
|
|
project(CMP0022-NOWARN-static)
|
|
|
|
|
|
|
|
add_library(foo STATIC empty_vs6_1.cpp)
|
|
|
|
add_library(bar STATIC empty_vs6_2.cpp)
|
|
|
|
add_library(bat STATIC empty_vs6_3.cpp)
|
|
|
|
target_link_libraries(foo bar)
|
2013-10-20 22:39:16 +04:00
|
|
|
# The last element here needs to contain a space so that it is a single
|
|
|
|
# element which is not a valid target name. As bar is a STATIC library,
|
|
|
|
# this tests that the LINK_ONLY generator expression is not used for
|
|
|
|
# that element, creating an error.
|
|
|
|
target_link_libraries(bar bat "-lz -lm")
|