forked from mirrors/nixpkgs
53 lines
2.3 KiB
Diff
53 lines
2.3 KiB
Diff
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
|
|
index e171047..aafa09c 100644
|
|
--- a/pm_common/CMakeLists.txt
|
|
+++ b/pm_common/CMakeLists.txt
|
|
@@ -22,7 +22,7 @@ else(APPLE OR WIN32)
|
|
endif(APPLE OR WIN32)
|
|
|
|
if(APPLE)
|
|
- set(CMAKE_OSX_SYSROOT /Developer/SDKs/MacOSX10.5.sdk CACHE
|
|
+ set(CMAKE_OSX_SYSROOT / CACHE
|
|
PATH "-isysroot parameter for compiler" FORCE)
|
|
set(CMAKE_C_FLAGS "-mmacosx-version-min=10.5" CACHE
|
|
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 "")
|