Skip to content

Commit

Permalink
explicitly enable CMake policy 42 to prevent warning (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas authored and scpeters committed Jan 3, 2018
1 parent c227ae0 commit 4a52e5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()

if(POLICY CMP0042)
cmake_policy(SET CMP0042 NEW)
endif()

# If compiler support symbol visibility, enable it.
include(CheckCCompilerFlag)
check_c_compiler_flag(-fvisibility=hidden HAS_VISIBILITY)
Expand Down

0 comments on commit 4a52e5d

Please sign in to comment.