CMP0004-policy-genex.cmake 381 B

1234567891011121314
  1. cmake_minimum_required(VERSION 2.8.4)
  2. cmake_policy(SET CMP0004 NEW)
  3. add_library(foo SHARED empty.cpp)
  4. add_library(bar SHARED empty.cpp)
  5. add_library(bat SHARED empty.cpp)
  6. # The negation here avoids the error.
  7. target_link_libraries(foo "$<$<NOT:$<TARGET_POLICY:CMP0004>>: bar >")
  8. # The below line causes the error.
  9. target_link_libraries(foo "$<$<TARGET_POLICY:CMP0004>: bat >")