From b18c1268988b8d276f6dd4002a37a70dc2c8ac70 Mon Sep 17 00:00:00 2001 From: liaogang Date: Tue, 14 Feb 2017 22:01:17 +0800 Subject: [PATCH] set macosx deployment version --- cmake/external/python.cmake | 4 ---- cmake/system.cmake | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/cmake/external/python.cmake b/cmake/external/python.cmake index 6372a9a76..0accf1a8d 100644 --- a/cmake/external/python.cmake +++ b/cmake/external/python.cmake @@ -221,7 +221,3 @@ ENDIF(PYTHONLIBS_FOUND AND PYTHONINTERP_FOUND) INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${PYTHON_NUMPY_INCLUDE_DIR}) - -MESSAGE("[Paddle] Python Executable: ${PYTHON_EXECUTABLE}") -MESSAGE("[Paddle] Python Include: ${PYTHON_INCLUDE_DIRS}") -MESSAGE("[Paddle] Python Libraries: ${PYTHON_LIBRARIES}") diff --git a/cmake/system.cmake b/cmake/system.cmake index 3e472da7e..58ac7dcb9 100644 --- a/cmake/system.cmake +++ b/cmake/system.cmake @@ -28,6 +28,9 @@ ELSE(WIN32) STRING(REGEX MATCH "[0-9]+.[0-9]+" VERSION "${MACOSX_VERSION}") SET(MACOS_VERSION ${VERSION}) SET(HOST_SYSTEM "macosx") + IF(NOT DEFINED ENV{MACOSX_DEPLOYMENT_TARGET}) + SET(CMAKE_OSX_DEPLOYMENT_TARGET ${MACOS_VERSION}) + ENDIF() ELSE(APPLE) IF(EXISTS "/etc/issue") -- GitLab