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")
ENDIF()
if(POLICY CMP0020)
cmake_policy(SET CMP0020 OLD)
endif()
if(POLICY CMP0043)
cmake_policy(SET CMP0043 OLD)
endif()
IF(MINGW)
# Hide the --enable-auto-import warning
SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--enable-auto-import")