Commit c9218a96 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Fix installation of Python module zip if CMAKE_OSX_DEPLOYMENT_TARGET is not defined.

parent dc854fb3
...@@ -223,6 +223,9 @@ if(CMAKE_CROSSCOMPILING) ...@@ -223,6 +223,9 @@ if(CMAKE_CROSSCOMPILING)
set(UNDERSCORE_PLATFORM_TAG "any") set(UNDERSCORE_PLATFORM_TAG "any")
else() else()
if(APPLE) if(APPLE)
if(NOT CMAKE_OSX_DEPLOYMENT_TARGET)
set(CMAKE_OSX_DEPLOYMENT_TARGET "x86_64")
endif()
set(PLATFORM_OS "macosx-${CMAKE_OSX_DEPLOYMENT_TARGET}") set(PLATFORM_OS "macosx-${CMAKE_OSX_DEPLOYMENT_TARGET}")
else() else()
set(PLATFORM_OS "linux") set(PLATFORM_OS "linux")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment