mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 04:29:52 +00:00
d05a9bd1e6
Set the minimum required version of CMake high enough to avoid the warning for CMAKE_LEGACY_CYGWIN_WIN32. The warning appears on stderr and breaks the expected output matching.
15 lines
381 B
CMake
15 lines
381 B
CMake
|
|
cmake_minimum_required(VERSION 2.8.4)
|
|
|
|
cmake_policy(SET CMP0004 NEW)
|
|
|
|
add_library(foo SHARED empty.cpp)
|
|
add_library(bar SHARED empty.cpp)
|
|
add_library(bat SHARED empty.cpp)
|
|
|
|
# The negation here avoids the error.
|
|
target_link_libraries(foo "$<$<NOT:$<TARGET_POLICY:CMP0004>>: bar >")
|
|
|
|
# The below line causes the error.
|
|
target_link_libraries(foo "$<$<TARGET_POLICY:CMP0004>: bat >")
|