From 62fb775c8ea934e69fa88396d0f64c9526d6cdfa Mon Sep 17 00:00:00 2001 From: Raphael Isemann <teemperor@gmail.com> Date: Tue, 25 Jul 2017 11:24:45 +0200 Subject: [PATCH] Fix CMake warnings regarding LINK_INTERFACE_LIBRARIES property. This property was renamed in CMake 2.8.12, so we now should use the newer name on recent CMake versions. We don't need to support the pre-2.8.12 versions of CMake because we anyway have code that requires 3.x. --- cmake/modules/RootNewMacros.cmake | 6 +----- proof/proofd/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/cmake/modules/RootNewMacros.cmake b/cmake/modules/RootNewMacros.cmake index 921d1fc6d02..16a9a7b7a5d 100644 --- a/cmake/modules/RootNewMacros.cmake +++ b/cmake/modules/RootNewMacros.cmake @@ -4,10 +4,6 @@ cmake_policy(SET CMP0003 NEW) # See "cmake --help-policy CMP0003" for more details cmake_policy(SET CMP0011 NEW) # See "cmake --help-policy CMP0011" for more details cmake_policy(SET CMP0009 NEW) # See "cmake --help-policy CMP0009" for more details -if(CMAKE_VERSION VERSION_GREATER 2.8.12) - cmake_policy(SET CMP0022 OLD) # See "cmake --help-policy CMP0022" for more details -endif() - set(THISDIR ${CMAKE_CURRENT_LIST_DIR}) @@ -596,7 +592,7 @@ function(ROOT_LINKER_LIBRARY library) add_dependencies(${library} move_headers) set_property(GLOBAL APPEND PROPERTY ROOT_EXPORTED_TARGETS ${library}) set_target_properties(${library} PROPERTIES OUTPUT_NAME ${library_name}) - set_target_properties(${library} PROPERTIES LINK_INTERFACE_LIBRARIES "${ARG_DEPENDENCIES}") + set_target_properties(${library} PROPERTIES INTERFACE_LINK_LIBRARIES "${ARG_DEPENDENCIES}") # Do not add -Dname_EXPORTS to the command-line when building files in this # target. Doing so is actively harmful for the modules build because it # creates extra module variants, and not useful because we don't use these diff --git a/proof/proofd/CMakeLists.txt b/proof/proofd/CMakeLists.txt index 96050eb0d0c..cb2ca0529c4 100644 --- a/proof/proofd/CMakeLists.txt +++ b/proof/proofd/CMakeLists.txt @@ -26,7 +26,7 @@ else() endif () ROOT_LINKER_LIBRARY(XrdProofd X*.cxx ${CMAKE_SOURCE_DIR}/net/rpdutils/src/rpdconn.cxx LIBRARIES ${XROOTD_LIBRARIES} rpdutil ${CMAKE_THREAD_LIBS_INIT} ${CMAKE_DL_LIBS} BUILTINS XROOTD) - set_target_properties(XrdProofd PROPERTIES LINK_INTERFACE_LIBRARIES "") + set_target_properties(XrdProofd PROPERTIES INTERFACE_LINK_LIBRARIES "") ROOT_EXECUTABLE(proofexecv proofexecv.cxx ${CMAKE_SOURCE_DIR}/net/rpdutils/src/rpdconn.cxx ${CMAKE_SOURCE_DIR}/net/rpdutils/src/rpdpriv.cxx LIBRARIES ${SYSLIBS}) endif() -- GitLab