mirror of
https://github.com/reactos/CMake.git
synced 2024-12-14 23:29:57 +00:00
574fec97fd
This property is generated only for targets which have recorded policy CMP0022 as NEW, and a compatibility mode is added to additionally export the old interfaces in that case too. If the old interfaces are not exported, the generated export files require CMake 2.8.12. Because the unit tests use a version which is not yet called 2.8.12, temporarily require a lower version.
12 lines
314 B
CMake
12 lines
314 B
CMake
|
|
project(cmp0022NEW)
|
|
|
|
cmake_policy(SET CMP0022 NEW)
|
|
|
|
add_library(cmp0022NEW SHARED empty_vs6_1.cpp)
|
|
add_library(testLib SHARED empty_vs6_2.cpp)
|
|
|
|
set_property(TARGET cmp0022NEW APPEND PROPERTY LINK_INTERFACE_LIBRARIES testLib)
|
|
|
|
export(TARGETS cmp0022NEW testLib FILE "${CMAKE_CURRENT_BINARY_DIR}/cmp0022NEW.cmake")
|