2021-08-10 07:04:34 +01:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
|
|
index 4919b78..758eccb 100644
|
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
|
|
|
@@ -36,8 +36,6 @@ set(CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO "" CACHE INTERNAL "Unused")
|
|
|
|
set(CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO "" CACHE INTERNAL "Unused")
|
|
|
|
set(CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO "" CACHE INTERNAL "Unused")
|
|
|
|
|
|
|
|
-set(CMAKE_OSX_ARCHITECTURES i386 ppc x86_64 CACHE STRING "change to needed architecture for a smaller library" FORCE)
|
|
|
|
-
|
|
|
|
PROJECT(portmidi)
|
|
|
|
|
|
|
|
if(UNIX)
|
|
|
|
diff --git a/pm_common/CMakeLists.txt b/pm_common/CMakeLists.txt
|
2021-08-11 11:08:54 +01:00
|
|
|
index cbeeade..f765430 100644
|
2021-08-10 07:04:34 +01:00
|
|
|
--- a/pm_common/CMakeLists.txt
|
|
|
|
+++ b/pm_common/CMakeLists.txt
|
|
|
|
@@ -22,7 +22,7 @@ else(APPLE OR WIN32)
|
|
|
|
endif(APPLE OR WIN32)
|
|
|
|
|
|
|
|
if(APPLE)
|
2021-08-11 11:08:54 +01:00
|
|
|
- set(CMAKE_OSX_SYSROOT /Developer/SDKs/MacOSX10.6.sdk CACHE
|
2021-08-10 07:04:34 +01:00
|
|
|
+ set(CMAKE_OSX_SYSROOT / CACHE
|
2021-08-11 11:08:54 +01:00
|
|
|
PATH "-isysroot parameter for compiler")
|
|
|
|
set(CMAKE_C_FLAGS "-mmacosx-version-min=10.6" CACHE
|
2021-08-10 07:04:34 +01:00
|
|
|
STRING "needed in conjunction with CMAKE_OSX_SYSROOT" FORCE)
|
|
|
|
@@ -54,10 +54,6 @@ if(UNIX)
|
|
|
|
|
|
|
|
include_directories(${CMAKE_OSX_SYSROOT}/Developer/Headers/FlatCarbon)
|
|
|
|
set(FRAMEWORK_PATH ${CMAKE_OSX_SYSROOT}/System/Library/Frameworks)
|
|
|
|
- set(COREAUDIO_LIB "${FRAMEWORK_PATH}/CoreAudio.framework")
|
|
|
|
- set(COREFOUNDATION_LIB "${FRAMEWORK_PATH}/CoreFoundation.framework")
|
|
|
|
- set(COREMIDI_LIB "${FRAMEWORK_PATH}/CoreMIDI.framework")
|
|
|
|
- set(CORESERVICES_LIB "${FRAMEWORK_PATH}/CoreServices.framework")
|
|
|
|
set(PM_NEEDED_LIBS ${COREAUDIO_LIB} ${COREFOUNDATION_LIB}
|
|
|
|
${COREMIDI_LIB} ${CORESERVICES_LIB}
|
|
|
|
CACHE INTERNAL "")
|
|
|
|
diff --git a/pm_dylib/CMakeLists.txt b/pm_dylib/CMakeLists.txt
|
|
|
|
index f693dd6..1dc5cd6 100644
|
|
|
|
--- a/pm_dylib/CMakeLists.txt
|
|
|
|
+++ b/pm_dylib/CMakeLists.txt
|
|
|
|
@@ -49,10 +49,6 @@ if(UNIX)
|
|
|
|
|
|
|
|
include_directories(${CMAKE_OSX_SYSROOT}/Developer/Headers/FlatCarbon)
|
|
|
|
set(FRAMEWORK_PATH ${CMAKE_OSX_SYSROOT}/System/Library/Frameworks)
|
|
|
|
- set(COREAUDIO_LIB "${FRAMEWORK_PATH}/CoreAudio.framework")
|
|
|
|
- set(COREFOUNDATION_LIB "${FRAMEWORK_PATH}/CoreFoundation.framework")
|
|
|
|
- set(COREMIDI_LIB "${FRAMEWORK_PATH}/CoreMIDI.framework")
|
|
|
|
- set(CORESERVICES_LIB "${FRAMEWORK_PATH}/CoreServices.framework")
|
|
|
|
set(PM_NEEDED_LIBS ${COREAUDIO_LIB} ${COREFOUNDATION_LIB}
|
|
|
|
${COREMIDI_LIB} ${CORESERVICES_LIB}
|
|
|
|
CACHE INTERNAL "")
|