Skip to content

Commit

Permalink
Fix CMake version check again (for Linux2010).
Browse files Browse the repository at this point in the history
  • Loading branch information
jpivarski committed Sep 21, 2019
1 parent fa6b581 commit 5af7e6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ else()
set(PYBIND11_CPP_STANDARD -std=c++11)
endif()

if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.3.0")
if (${CMAKE_MAJOR_VERSION} GREATER "2" AND ${CMAKE_MINOR_VERSION} GREATER "2")
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
cmake_policy(SET CMP0063 NEW)
endif()
Expand Down
2 changes: 1 addition & 1 deletion VERSION_INFO
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.2
0.1.3

0 comments on commit 5af7e6b

Please sign in to comment.