Mercurial > hg > orthanc
changeset 4970:2e3006382c22
fix for Apple M1
author | Alain Mazy <am@osimis.io> |
---|---|
date | Wed, 30 Mar 2022 14:50:30 +0200 |
parents | 3c3bb0181e96 |
children | d68b3a2cea17 cde17b68d73e |
files | OrthancFramework/SharedLibrary/CMakeLists.txt OrthancServer/CMakeLists.txt |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancFramework/SharedLibrary/CMakeLists.txt Mon Mar 28 23:33:25 2022 +0200 +++ b/OrthancFramework/SharedLibrary/CMakeLists.txt Wed Mar 30 14:50:30 2022 +0200 @@ -531,6 +531,8 @@ -DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS} -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} -DCMAKE_C_FLAGS=${CMAKE_C_FLAGS} + -DCMAKE_OSX_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET} + -DCMAKE_OSX_ARCHITECTURES=${CMAKE_OSX_ARCHITECTURES} ) add_dependencies(UnitTests OrthancFramework)
--- a/OrthancServer/CMakeLists.txt Mon Mar 28 23:33:25 2022 +0200 +++ b/OrthancServer/CMakeLists.txt Wed Mar 30 14:50:30 2022 +0200 @@ -578,6 +578,8 @@ -DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS} -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} -DCMAKE_C_FLAGS=${CMAKE_C_FLAGS} + -DCMAKE_OSX_DEPLOYMENT_TARGET=${CMAKE_OSX_DEPLOYMENT_TARGET} + -DCMAKE_OSX_ARCHITECTURES=${CMAKE_OSX_ARCHITECTURES} ) if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")