Ticket #46493: cmake-3.1.2-RJVB.diff
File cmake-3.1.2-RJVB.diff, 18.6 KB (added by RJVB (René Bertin), 10 years ago) |
---|
-
trunk/dports/devel/cmake/Portfile
diff --git a/trunk/dports/devel/cmake/Portfile b/trunk/dports/devel/cmake/Portfile
a b 5 5 PortGroup muniversal 1.0 6 6 7 7 name cmake 8 version 3.0.2 9 revision 1 8 version 3.1.2 10 9 set branch [join [lrange [split ${version} .] 0 1] .] 11 10 categories devel 12 11 license BSD 13 12 installs_libs no 14 maintainers css 13 maintainers css michaelld 15 14 description Cross-platform make 16 15 long_description An extensible, open-source system that manages the build \ 17 16 process in an operating system and compiler independent manner. \ … … 21 20 master_sites http://www.cmake.org/files/v${branch}/ 22 21 platforms darwin freebsd 23 22 24 checksums rmd160 b94ea2ed4dced373e289fa5f66674a227135f350\25 sha256 6b4ea61eadbbd9bec0ccb383c29d1f4496eacc121ef7acf37c7a24777805693e23 checksums rmd160 50caf6ff5de97390decf43446ef0733750a5862c \ 24 sha256 2b210f7d867a1e716c1895357ebe63c7b9ae61fdb5f2d300ab2f01795f085b35 26 25 27 26 depends_lib-append port:libidn \ 28 27 port:openssl \ … … 36 35 patch-Modules-FindFreetype.cmake.diff \ 37 36 patch-Modules-FindQt4.cmake.diff \ 38 37 patch-Modules-Platform-Darwin.cmake.diff \ 38 patch-Modules-Platform-Darwin-Initialize.cmake.diff \ 39 39 patch-Modules-noArchCheck.diff 40 40 41 # RJVB : fix for the obsolete use of -bundle instead of -dynamiclib in CMAKE_SHARED_MODULE_CREATE 42 patchfiles-append patch-SHARED_BUNDLE_flag.diff 43 41 44 configure.env-append \ 42 45 CMAKE_PREFIX_PATH=${prefix} \ 43 46 CMAKE_INCLUDE_PATH=${prefix}/include/ncurses \ … … 58 61 --parallel=${build.jobs} \ 59 62 --init=${worksrcpath}/macports.cmake \ 60 63 --system-libs 64 #--sphinx-man --sphinx-build=${prefix}/bin/sphinx-build-3.3 61 65 62 66 configure.universal_args 63 67 configure.post_args … … 112 116 reinplace "s|@PREFIX@|${prefix}|g" ${destroot}${applications_dir}/${app}.app/Contents/Info.plist 113 117 ln -s ${prefix}/bin/cmake-gui ${destroot}${applications_dir}/${app}.app/Contents/MacOS/cmake-gui 114 118 xinstall -m 644 ${worksrcpath}/Source/QtDialog/CMakeSetup.icns ${destroot}${applications_dir}/${app}.app/Contents/Resources/CMakeSetup.icns 119 file delete -force ${destroot}${prefix}/PlugIns 120 file delete -force ${destroot}${prefix}/Resources 115 121 } 116 122 } 117 123 118 variant gui description {Qt4 based cmake-gui} {124 variant qt4 description {Build the Qt4 gui version} { 119 125 PortGroup qt4 1.0 120 patchfiles-append patch-CMakeLists.txt.diff 126 } 127 128 variant gui description {Qt based cmake-gui} { 129 if {[variant_isset qt4]} { 130 # qt4 being requested we have to make sure CMake doesn't detect and use 131 # qt5 if that happens to be installed too: 132 patchfiles-append patch-CMakeLists.txt.diff \ 133 patch-CMakeLists-4qt4.diff 134 } else { 135 # this is how cmake checks what Qt version to use: 136 if {[file exists ${prefix}/lib/pkgconfig/Qt5Widgets.pc]} { 137 PortGroup qt5 1.0 138 } else { 139 PortGroup qt4 1.0 140 } 141 patchfiles-append patch-CMakeLists.txt.diff 142 } 121 143 configure.args-append --qt-gui --qt-qmake=${qt_qmake_cmd} 122 144 } 123 145 -
new file trunk/dports/devel/cmake/files/patch-CMakeLists-4qt4.diff
diff --git a/trunk/dports/devel/cmake/files/patch-CMakeLists-4qt4.diff b/trunk/dports/devel/cmake/files/patch-CMakeLists-4qt4.diff new file mode 10644
- + 1 diff --git Source/QtDialog/CMakeLists.txt Source/QtDialog/CMakeLists.txt 2 index 03c2fb4..a73a37f 100644 3 --- Source/QtDialog/CMakeLists.txt 4 +++ Source/QtDialog/CMakeLists.txt 5 @@ -14,8 +14,8 @@ project(QtDialog) 6 if(POLICY CMP0020) 7 cmake_policy(SET CMP0020 NEW) # Drop when CMake >= 2.8.11 required 8 endif() 9 -find_package(Qt5Widgets QUIET) 10 -if (Qt5Widgets_FOUND) 11 +#find_package(Qt5Widgets QUIET) 12 +if (FALSE) 13 include_directories(${Qt5Widgets_INCLUDE_DIRS}) 14 add_definitions(${Qt5Widgets_DEFINITONS}) 15 macro(qt4_wrap_ui) -
trunk/dports/devel/cmake/files/patch-CMakeLists.txt.diff
diff --git a/trunk/dports/devel/cmake/files/patch-CMakeLists.txt.diff b/trunk/dports/devel/cmake/files/patch-CMakeLists.txt.diff
a b 1 diff --git CMakeLists.txt CMakeLists.txt 2 index 71850de..e25ea4e 100644 1 3 --- CMakeLists.txt 2 4 +++ CMakeLists.txt 3 @@ - 476,7 +476,7 @@ if(BUILD_CursesDialog)4 endif()5 @@ -501,7 +501,7 @@ if(NOT CMake_TEST_EXTERNAL_CMAKE) 6 endif() 5 7 6 if(BUILD_QtDialog) 7 - if(APPLE) 8 + if(FALSE) 9 set(CMAKE_BUNDLE_VERSION 10 "${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}.${CMake_VERSION_PATCH}") 11 set(CMAKE_BUNDLE_LOCATION "${CMAKE_INSTALL_PREFIX}") 8 if(BUILD_QtDialog) 9 - if(APPLE) 10 + if(APPLEBUNDLE) 11 set(CMAKE_BUNDLE_VERSION 12 "${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}.${CMake_VERSION_PATCH}") 13 set(CMAKE_BUNDLE_LOCATION "${CMAKE_INSTALL_PREFIX}") 14 diff --git Source/QtDialog/CMakeLists.txt Source/QtDialog/CMakeLists.txt 15 index 03c2fb4..eb46fcb 100644 12 16 --- Source/QtDialog/CMakeLists.txt 13 17 +++ Source/QtDialog/CMakeLists.txt 14 @@ - 99,7 +99,7 @@ set(SRCS ${SRCS} ${UI_SRCS} ${MOC_SRCS} ${RC_SRCS})18 @@ -125,7 +125,7 @@ set(SRCS ${SRCS} ${UI_SRCS} ${MOC_SRCS} ${RC_SRCS}) 15 19 if(WIN32) 16 20 set(SRCS ${SRCS} CMakeSetup.rc) 17 21 endif() 18 22 -if(APPLE) 19 +if( FALSE)23 +if(APPLEBUNDLE) 20 24 set(SRCS ${SRCS} CMakeSetup.icns) 21 25 set(MACOSX_BUNDLE_ICON_FILE CMakeSetup.icns) 22 26 set_source_files_properties(CMakeSetup.icns PROPERTIES 23 @@ -1 15,13 +115,13 @@ endif()27 @@ -141,13 +141,13 @@ endif() 24 28 25 29 set(CMAKE_INCLUDE_CURRENT_DIR ON) 26 30 … … 32 36 endif() 33 37 34 38 -if(APPLE) 35 +if( FALSE)39 +if(APPLEBUNDLE) 36 40 file(STRINGS "${CMake_SOURCE_DIR}/Copyright.txt" copyright_line 37 41 LIMIT_COUNT 1 REGEX "^Copyright 2000-20[0-9][0-9] Kitware") 38 42 39 @@ -153,7 +153,7 @@ if(UNIX) 40 install(FILES cmakecache.xml DESTINATION share/mime/packages ) 41 endif() 42 43 -if(APPLE) 44 +if(FALSE) 45 set(CMAKE_POSTFLIGHT_SCRIPT 46 "${CMake_BINARY_DIR}/Source/QtDialog/postflight.sh") 47 set(CMAKE_POSTUPGRADE_SCRIPT 48 @@ -166,7 +166,7 @@ if(APPLE) 43 @@ -184,11 +184,11 @@ if(APPLE) 49 44 WORKING_DIRECTORY \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/bin)") 50 45 endif() 51 46 52 47 -if(APPLE OR WIN32) 53 +if( WIN32)48 +if(APPLEBUNDLE OR WIN32) 54 49 # install rules for including 3rd party libs such as Qt 55 50 # if a system Qt is used (e.g. installed in /usr/lib/), it will not be included in the installation 56 51 set(fixup_exe "\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/bin/cmake-gui${CMAKE_EXECUTABLE_SUFFIX}") 52 - if(APPLE) 53 + if(APPLEBUNDLE) 54 set(fixup_exe "\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/MacOS/CMake") 55 endif() 56 install(CODE " -
trunk/dports/devel/cmake/files/patch-Modules-FindFreetype.cmake.diff
diff --git a/trunk/dports/devel/cmake/files/patch-Modules-FindFreetype.cmake.diff b/trunk/dports/devel/cmake/files/patch-Modules-FindFreetype.cmake.diff
a b 1 --- Modules/FindFreetype.cmake.orig 2 +++ Modules/FindFreetype.cmake 3 @@ -5 5,10 +55,6 @@ find_path(FREETYPE_INCLUDE_DIR_ft2build ft2build.h1 --- Modules/FindFreetype.cmake.orig 2015-02-04 15:36:43.000000000 -0500 2 +++ Modules/FindFreetype.cmake 2015-02-09 10:34:02.000000000 -0500 3 @@ -57,10 +57,6 @@ 4 4 HINTS 5 5 ENV FREETYPE_DIR 6 6 PATHS … … 11 11 ENV GTKMM_BASEPATH 12 12 [HKEY_CURRENT_USER\\SOFTWARE\\gtkmm\\2.4;Path] 13 13 [HKEY_LOCAL_MACHINE\\SOFTWARE\\gtkmm\\2.4;Path] 14 @@ -7 2,10 +68,6 @@ find_path(FREETYPE_INCLUDE_DIR_freetype214 @@ -78,10 +74,6 @@ 15 15 HINTS 16 16 ENV FREETYPE_DIR 17 17 PATHS … … 22 22 ENV GTKMM_BASEPATH 23 23 [HKEY_CURRENT_USER\\SOFTWARE\\gtkmm\\2.4;Path] 24 24 [HKEY_LOCAL_MACHINE\\SOFTWARE\\gtkmm\\2.4;Path] 25 @@ -88,10 +80,6 @@ find_library(FREETYPE_LIBRARY 25 @@ -99,10 +91,6 @@ 26 HINTS 26 27 ENV FREETYPE_DIR 27 PATH_SUFFIXES lib28 28 PATHS 29 29 - /usr/X11R6 30 30 - /usr/local/X11R6 -
trunk/dports/devel/cmake/files/patch-Modules-FindQt4.cmake.diff
diff --git a/trunk/dports/devel/cmake/files/patch-Modules-FindQt4.cmake.diff b/trunk/dports/devel/cmake/files/patch-Modules-FindQt4.cmake.diff
a b 1 --- Modules/FindQt4.cmake.orig 2 +++ Modules/FindQt4.cmake 3 @@ -7 28,9 +728,7 @@ if (QT_QMAKE_EXECUTABLE AND QTVERSION)1 --- Modules/FindQt4.cmake.orig 2015-02-04 15:36:43.000000000 -0500 2 +++ Modules/FindQt4.cmake 2015-02-09 10:34:02.000000000 -0500 3 @@ -741,9 +741,7 @@ 4 4 find_path(QT_IMPORTS_DIR NAMES Qt 5 5 HINTS ${qt_cross_paths} ${qt_imports_dir} 6 6 DOC "The location of the Qt imports" -
new file trunk/dports/devel/cmake/files/patch-Modules-Platform-Darwin-Initialize.cmake.diff
diff --git a/trunk/dports/devel/cmake/files/patch-Modules-Platform-Darwin-Initialize.cmake.diff b/trunk/dports/devel/cmake/files/patch-Modules-Platform-Darwin-Initialize.cmake.diff new file mode 10644
- + 1 --- Modules/Platform/Darwin-Initialize.cmake.orig 2015-02-09 10:55:45.000000000 -0500 2 +++ Modules/Platform/Darwin-Initialize.cmake 2015-02-09 10:58:06.000000000 -0500 3 @@ -94,11 +94,17 @@ 4 NOT CMAKE_OSX_DEPLOYMENT_TARGET VERSION_EQUAL ${_CMAKE_OSX_DEPLOYMENT_TARGET}) 5 set(_CMAKE_OSX_SDKS_VER ${CMAKE_OSX_DEPLOYMENT_TARGET}${_CMAKE_OSX_SDKS_VER_SUFFIX_${CMAKE_OSX_DEPLOYMENT_TARGET}}) 6 set(_CMAKE_OSX_SYSROOT_CHECK "${_CMAKE_OSX_SDKS_DIR}/MacOSX${_CMAKE_OSX_SDKS_VER}.sdk") 7 - message(WARNING 8 - "CMAKE_OSX_DEPLOYMENT_TARGET is '${CMAKE_OSX_DEPLOYMENT_TARGET}' " 9 - "but the matching SDK does not exist at:\n \"${_CMAKE_OSX_SYSROOT_CHECK}\"\n" 10 - "Instead using SDK:\n \"${_CMAKE_OSX_SYSROOT_DEFAULT}\"." 11 - ) 12 + if(IS_DIRECTORY "${_CMAKE_OSX_SYSROOT_DEFAULT}") 13 + if(NOT "${CMAKE_OSX_DEPLOYMENT_TARGET}" STREQUAL "${_CURRENT_OSX_VERSION}") 14 + message(WARNING 15 + "CMAKE_OSX_DEPLOYMENT_TARGET is '${CMAKE_OSX_DEPLOYMENT_TARGET}' " 16 + "but the matching SDK does not exist at:\n \"${_CMAKE_OSX_SYSROOT_CHECK}\"\n" 17 + "Instead using SDK:\n \"${_CMAKE_OSX_SYSROOT_DEFAULT}\"." 18 + ) 19 + endif() 20 + else() 21 + set(_CMAKE_OSX_SYSROOT_DEFAULT "") 22 + endif() 23 endif() 24 else() 25 # Assume developer files are in root (such as Xcode 4.5 command-line tools). -
trunk/dports/devel/cmake/files/patch-Modules-Platform-Darwin.cmake.diff
diff --git a/trunk/dports/devel/cmake/files/patch-Modules-Platform-Darwin.cmake.diff b/trunk/dports/devel/cmake/files/patch-Modules-Platform-Darwin.cmake.diff
a b 1 --- Modules/Platform/Darwin.cmake.orig 2014-09-11 23:24:00.000000000 +1000 2 +++ Modules/Platform/Darwin.cmake 2014-10-21 14:02:52.000000000 +1100 3 @@ -140,12 +140,18 @@ 4 else() 5 set(_CMAKE_OSX_SDKS_VER ${_CURRENT_OSX_VERSION}${_CMAKE_OSX_SDKS_VER_SUFFIX_${_CURRENT_OSX_VERSION}}) 6 set(_CMAKE_OSX_SYSROOT_DEFAULT "${_CMAKE_OSX_SDKS_DIR}/MacOSX${_CMAKE_OSX_SDKS_VER}.sdk") 7 - message(WARNING 8 - "CMAKE_OSX_DEPLOYMENT_TARGET is '${CMAKE_OSX_DEPLOYMENT_TARGET}' " 9 - "but the matching SDK does not exist at:\n \"${_CMAKE_OSX_SYSROOT_CHECK}\"\n" 10 - "Instead using SDK:\n \"${_CMAKE_OSX_SYSROOT_DEFAULT}\"\n" 11 - "matching the host OS X version." 12 - ) 13 + if(IS_DIRECTORY "${_CMAKE_OSX_SYSROOT_DEFAULT}") 14 + if (NOT "${CMAKE_OSX_DEPLOYMENT_TARGET}" STREQUAL "${_CURRENT_OSX_VERSION}") 15 + message(WARNING 16 + "CMAKE_OSX_DEPLOYMENT_TARGET is '${CMAKE_OSX_DEPLOYMENT_TARGET}' " 17 + "but the matching SDK does not exist at:\n \"${_CMAKE_OSX_SYSROOT_CHECK}\"\n" 18 + "Instead using SDK:\n \"${_CMAKE_OSX_SYSROOT_DEFAULT}\"\n" 19 + "matching the host OS X version." 20 + ) 21 + endif() 22 + else () 23 + set(_CMAKE_OSX_SYSROOT_DEFAULT "") 24 + endif() 25 endif() 26 else() 27 set(_CMAKE_OSX_SDKS_VER ${_CURRENT_OSX_VERSION}${_CMAKE_OSX_SDKS_VER_SUFFIX_${_CURRENT_OSX_VERSION}}) 28 @@ -207,6 +213,8 @@ 1 --- Modules/Platform/Darwin.cmake.orig 2015-02-04 15:36:43.000000000 -0500 2 +++ Modules/Platform/Darwin.cmake 2015-02-09 10:39:29.000000000 -0500 3 @@ -70,7 +70,8 @@ 29 4 set(_sdk_ver "${CMAKE_MATCH_1}") 30 5 elseif("${_CMAKE_OSX_SYSROOT_ORIG}" MATCHES "^macosx([0-9]+\\.[0-9]+)$") 31 6 set(_sdk_ver "${CMAKE_MATCH_1}") 32 + elseif("${_CMAKE_OSX_SYSROOT_ORIG}" STREQUAL "/" OR "${_CMAKE_OSX_SYSROOT_ORIG}" STREQUAL "") 33 + set(_sdk_ver "${_CURRENT_OSX_VERSION}") 7 - elseif("${_CMAKE_OSX_SYSROOT_ORIG}" STREQUAL "/") 8 + elseif("${_CMAKE_OSX_SYSROOT_ORIG}" STREQUAL "/" OR 9 + "${_CMAKE_OSX_SYSROOT_ORIG}" STREQUAL "") 10 set(_sdk_ver "${_CURRENT_OSX_VERSION}") 34 11 else() 35 12 message(FATAL_ERROR 36 "CMAKE_OSX_DEPLOYMENT_TARGET is '${CMAKE_OSX_DEPLOYMENT_TARGET}' " -
new file trunk/dports/devel/cmake/files/patch-SHARED_BUNDLE_flag.diff
diff --git a/trunk/dports/devel/cmake/files/patch-SHARED_BUNDLE_flag.diff b/trunk/dports/devel/cmake/files/patch-SHARED_BUNDLE_flag.diff new file mode 10644
- + 1 --- ./Modules/Platform/Darwin-Intel.cmake.orig 2014-06-09 17:46:52.000000000 +0200 2 +++ ./Modules/Platform/Darwin-Intel.cmake 2014-07-03 12:26:08.000000000 +0200 3 @@ -21,7 +21,8 @@ 4 macro(__darwin_compiler_intel lang) 5 set(CMAKE_${lang}_VERBOSE_FLAG "-v -Wl,-v") # also tell linker to print verbose output 6 set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-dynamiclib -Wl,-headerpad_max_install_names") 7 - set(CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS "-bundle -Wl,-headerpad_max_install_names") 8 + #set(CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS "-bundle -Wl,-headerpad_max_install_names") 9 + set(CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS "-dynamiclib -Wl,-headerpad_max_install_names") 10 11 if(NOT CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 12.0) 12 set(CMAKE_${lang}_COMPILE_OPTIONS_VISIBILITY "-fvisibility=") 13 --- ./Modules/Platform/Darwin-XL-C.cmake.orig 2014-06-09 17:46:52.000000000 +0200 14 +++ ./Modules/Platform/Darwin-XL-C.cmake 2014-07-03 12:26:15.000000000 +0200 15 @@ -1,5 +1,6 @@ 16 set(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-qmkshrobj") 17 -set(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-bundle") 18 +#set(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-bundle") 19 +set(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-dynamiclib") 20 21 # Enable shared library versioning. 22 set(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-install_name") 23 --- ./Modules/Platform/Darwin-XL-CXX.cmake.orig 2014-06-09 17:46:52.000000000 +0200 24 +++ ./Modules/Platform/Darwin-XL-CXX.cmake 2014-07-03 12:26:22.000000000 +0200 25 @@ -1,5 +1,6 @@ 26 set(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-qmkshrobj") 27 -set(CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS "-bundle") 28 +#set(CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS "-bundle") 29 +set(CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS "-dynamiclib") 30 31 # Enable shared library versioning. 32 set(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-Wl,-install_name") 33 --- ./Modules/Platform/Darwin.cmake.orig 2014-06-09 17:46:52.000000000 +0200 34 +++ ./Modules/Platform/Darwin.cmake 2014-07-03 12:26:31.000000000 +0200 35 @@ -50,7 +50,8 @@ 36 37 set(CMAKE_PLATFORM_HAS_INSTALLNAME 1) 38 set(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-dynamiclib -Wl,-headerpad_max_install_names") 39 -set(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-bundle -Wl,-headerpad_max_install_names") 40 +#set(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-bundle -Wl,-headerpad_max_install_names") 41 +set(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-dynamiclib -Wl,-headerpad_max_install_names") 42 set(CMAKE_SHARED_MODULE_LOADER_C_FLAG "-Wl,-bundle_loader,") 43 set(CMAKE_SHARED_MODULE_LOADER_CXX_FLAG "-Wl,-bundle_loader,") 44 set(CMAKE_FIND_LIBRARY_SUFFIXES ".dylib" ".so" ".a") 45 --- Modules/Platform/orig.Darwin-GNU.cmake 2015-02-10 21:59:20.000000000 +0100 46 +++ Modules/Platform/Darwin-GNU.cmake 2015-02-10 22:03:10.000000000 +0100 47 @@ -22,7 +22,8 @@ 48 set(CMAKE_${lang}_VERBOSE_FLAG "-v -Wl,-v") # also tell linker to print verbose output 49 # GNU does not have -shared on OS X 50 set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-dynamiclib -Wl,-headerpad_max_install_names") 51 - set(CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS "-bundle -Wl,-headerpad_max_install_names") 52 + #set(CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS "-bundle -Wl,-headerpad_max_install_names") 53 + set(CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS "-dynamiclib -Wl,-headerpad_max_install_names") 54 55 if(NOT CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 4.3) 56 set(CMAKE_${lang}_SYSTEM_FRAMEWORK_SEARCH_FLAG "-iframework ") 57 --- Modules/Platform/orig.Darwin-Clang.cmake 2015-02-10 21:59:20.000000000 +0100 58 +++ Modules/Platform/Darwin-Clang.cmake 2015-02-10 22:04:52.000000000 +0100 59 @@ -21,7 +21,8 @@ 60 macro(__darwin_compiler_clang lang) 61 set(CMAKE_${lang}_VERBOSE_FLAG "-v -Wl,-v") # also tell linker to print verbose output 62 set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-dynamiclib -Wl,-headerpad_max_install_names") 63 - set(CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS "-bundle -Wl,-headerpad_max_install_names") 64 + #set(CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS "-bundle -Wl,-headerpad_max_install_names") 65 + set(CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS "-dynamiclib -Wl,-headerpad_max_install_names") 66 set(CMAKE_${lang}_SYSROOT_FLAG "-isysroot") 67 set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "-mmacosx-version-min=") 68 if(NOT CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 3.1)