fix build for cmake < 3.3

CMP0063 hasnt been introduced yet
This commit is contained in:
derselbst 2018-09-18 17:34:10 +02:00
parent f4b88fc747
commit 457edfcdda

View file

@ -116,9 +116,11 @@ set ( CMAKE_POSITION_INDEPENDENT_CODE ${BUILD_SHARED_LIBS} )
if ( NOT OS2 )
set ( CMAKE_C_VISIBILITY_PRESET hidden )
endif ( NOT OS2 )
# enforce visibility control for all types of cmake targets
cmake_policy ( SET CMP0063 NEW )
# enforce visibility control for all types of cmake targets
if ( POLICY CMP0063 )
cmake_policy ( SET CMP0063 NEW )
endif ( POLICY CMP0063 )
# Default install directory names
include ( DefaultDirs )