suppressing CMP0020 and CMP0043 warnings

This commit is contained in:
matlabbe
2016-08-11 14:13:29 -04:00
parent 0ccb69bc06
commit 5557701f44
5 changed files with 23 additions and 0 deletions
+7
View File
@@ -53,6 +53,13 @@ ELSE ()
ADD_DEFINITIONS("-Wno-unknown-pragmas") ADD_DEFINITIONS("-Wno-unknown-pragmas")
ENDIF() ENDIF()
if(POLICY CMP0020)
cmake_policy(SET CMP0020 OLD)
endif()
if(POLICY CMP0043)
cmake_policy(SET CMP0043 OLD)
endif()
IF(MINGW) IF(MINGW)
# Hide the --enable-auto-import warning # Hide the --enable-auto-import warning
SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--enable-auto-import") SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--enable-auto-import")
+4
View File
@@ -23,6 +23,10 @@ else()
FIND_PACKAGE(PCL 1.7 REQUIRED) FIND_PACKAGE(PCL 1.7 REQUIRED)
endif() endif()
if(POLICY CMP0020)
cmake_policy(SET CMP0020 OLD)
endif()
SET(INCLUDE_DIRS SET(INCLUDE_DIRS
${RTABMap_INCLUDE_DIRS} ${RTABMap_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS}
+4
View File
@@ -31,6 +31,10 @@ else()
ENDIF(NOT Qt5_FOUND) ENDIF(NOT Qt5_FOUND)
endif() endif()
if(POLICY CMP0020)
cmake_policy(SET CMP0020 OLD)
endif()
SET(INCLUDE_DIRS SET(INCLUDE_DIRS
${RTABMap_INCLUDE_DIRS} ${RTABMap_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS}
+4
View File
@@ -31,6 +31,10 @@ else()
ENDIF(NOT Qt5_FOUND) ENDIF(NOT Qt5_FOUND)
endif() endif()
if(POLICY CMP0020)
cmake_policy(SET CMP0020 OLD)
endif()
SET(INCLUDE_DIRS SET(INCLUDE_DIRS
${RTABMap_INCLUDE_DIRS} ${RTABMap_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS}
+4
View File
@@ -31,6 +31,10 @@ else()
ENDIF(NOT Qt5_FOUND) ENDIF(NOT Qt5_FOUND)
endif() endif()
if(POLICY CMP0020)
cmake_policy(SET CMP0020 OLD)
endif()
SET(INCLUDE_DIRS SET(INCLUDE_DIRS
${RTABMap_INCLUDE_DIRS} ${RTABMap_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS}