diff --git a/lang/c++/CMakeLists.txt b/lang/c++/CMakeLists.txt index 3ac0974946d..f6520329afe 100644 --- a/lang/c++/CMakeLists.txt +++ b/lang/c++/CMakeLists.txt @@ -16,7 +16,7 @@ # specific language governing permissions and limitations # under the License. # -cmake_minimum_required (VERSION 3.1) +cmake_minimum_required (VERSION 3.5) set (CMAKE_LEGACY_CYGWIN_WIN32 0) @@ -26,7 +26,7 @@ endif() set(CMAKE_CXX_STANDARD_REQUIRED ON) -if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.0) +if (APPLE) # Enable MACOSX_RPATH by default cmake_policy (SET CMP0042 NEW) endif()