diff --git a/CMakeLists.txt b/CMakeLists.txt index dd7081a93..02b68edd8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,16 +3,24 @@ # CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0) -# for CMake 2.6 corrected behaviour (see "cmake --help-policy CMP0003") +# CMP0003: Libraries linked via full path no longer produce linker search paths +# (see "cmake --help-policy CMP0003") IF(POLICY CMP0003) CMAKE_POLICY(SET CMP0003 NEW) ENDIF(POLICY CMP0003) -# Suppress cmake policy warning in included rtt_macros.cmake file in CMake >= 3.0.2 (see "cmake --help-policy CMP0026") +# CMP0026: Suppress cmake policy warning in included rtt_macros.cmake file (CMake >= 3.0.2) +# (see "cmake --help-policy CMP0026") if(POLICY CMP0026) cmake_policy(SET CMP0026 OLD) endif() +# CMP0060: Link libraries by full path even in implicit directories (CMake >= 3.3) +# (see "cmake --help-policy CMP0060") +if(POLICY CMP0060) + cmake_policy(SET CMP0060 NEW) +endif(POLICY CMP0060) + ################################################### # # # Start project customization section #