Skip to content

Commit

Permalink
Protect Linux2010 from visibility setting (which is intended for MacO…
Browse files Browse the repository at this point in the history
…S, anyway).
  • Loading branch information
jpivarski committed Sep 21, 2019
1 parent 76ce154 commit fa6b581
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ else()
set(PYBIND11_CPP_STANDARD -std=c++11)
endif()

set(CMAKE_CXX_VISIBILITY_PRESET hidden)
cmake_policy(SET CMP0063 NEW)
if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.3.0")
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
cmake_policy(SET CMP0063 NEW)
endif()

file(READ "VERSION_INFO" VERSION_INFO)
string(STRIP ${VERSION_INFO} VERSION_INFO)
Expand Down
2 changes: 1 addition & 1 deletion VERSION_INFO
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.1
0.1.2

0 comments on commit fa6b581

Please sign in to comment.