You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
289 B
9 lines
289 B
11 years ago
|
|
||
|
add_library(iface INTERFACE)
|
||
|
set_property(TARGET iface PROPERTY INTERFACE_POSITION_INDEPENDENT_CODE ON)
|
||
|
|
||
|
set(CMAKE_DEBUG_TARGET_PROPERTIES POSITION_INDEPENDENT_CODE)
|
||
|
add_library(foo main.cpp)
|
||
|
target_link_libraries(foo iface)
|
||
|
set_property(TARGET foo PROPERTY POSITION_INDEPENDENT_CODE ON)
|