[MacPorts] #37527: cmake portgroup broken with latest version of cmake, 2.8.10
#37527: cmake portgroup broken with latest version of cmake, 2.8.10 -------------------------+------------------------------------------------- Reporter: mmoll@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: cmake, | Port: any port that uses the cmake port portgroup | group -------------------------+------------------------------------------------- I get this error using the cmake portgroup: {{{ CMake Error at /opt/local/share/cmake-2.8/Modules/Platform/Darwin.cmake:190 (message): CMAKE_OSX_DEPLOYMENT_TARGET is '10.8' but CMAKE_OSX_SYSROOT: "/" is not set to a MacOSX SDK with a recognized version. Either set CMAKE_OSX_SYSROOT to a valid SDK or set CMAKE_OSX_DEPLOYMENT_TARGET to empty. }}} The solution seems to be to simply remove "-DCMAKE_OSX_SYSROOT=/" from the configure.args. -- Ticket URL: <https://trac.macports.org/ticket/37527> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37527: cmake portgroup broken with latest version of cmake, 2.8.10 ----------------------+-------------------------------- Reporter: mmoll@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: cmake, portgroup Port: | ----------------------+-------------------------------- Changes (by ryandesign@…): * cc: css@…, ryandesign@… (added) * port: any port that uses the cmake port group => Comment: There was a specific reason though why we added that to the cmake portgroup. Are we sure that reason no longer applies? -- Ticket URL: <https://trac.macports.org/ticket/37527#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37527: cmake portgroup broken with latest version of cmake, 2.8.10 ----------------------+-------------------------------- Reporter: mmoll@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: cmake, portgroup Port: | ----------------------+-------------------------------- Changes (by ryandesign@…): * cc: macports@… (added) Comment: Has duplicate #37530. -- Ticket URL: <https://trac.macports.org/ticket/37527#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37527: cmake portgroup broken with latest version of cmake, 2.8.10 ----------------------+-------------------------------- Reporter: mmoll@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: cmake, portgroup Port: | ----------------------+-------------------------------- Comment (by mmoll@…): r78651 refers to #29008 and #29452. That was in the Tiger days with an older version of cmake. Maybe "-DCMAKE_OSX_SYSROOT=/" is no longer necessary. Another fix would be to specify a valid value for CMAKE_OSX_SYSROOT. If I don't specify one, cmake sets it to /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk in the CMakeCache.txt. -- Ticket URL: <https://trac.macports.org/ticket/37527#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37527: cmake portgroup broken with latest version of cmake, 2.8.10 ----------------------+-------------------------------- Reporter: mmoll@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: cmake, portgroup Port: | ----------------------+-------------------------------- Changes (by jmr@…): * cc: jeremyhu@… (added) Comment: Jeremy committed r101141 to avoid this error. It's probably better than failing to build, but I'm not sure if this is actually doing quite what we want (see mailing list). We want to not use -isysroot at all when configure.sdkroot is empty, and always set MACOSX_DEPLOYMENT_TARGET. -- Ticket URL: <https://trac.macports.org/ticket/37527#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37527: cmake portgroup broken with latest version of cmake, 2.8.10 ----------------------+-------------------------------- Reporter: mmoll@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: cmake, portgroup Port: | ----------------------+-------------------------------- Changes (by jeremyhu@…): * status: new => closed * resolution: => fixed Comment: I assumed that there was a good reason someone else had for setting it to /, but that seems to not be the case, so I've updated it in r101169. -- Ticket URL: <https://trac.macports.org/ticket/37527#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37527: cmake portgroup broken with latest version of cmake, 2.8.10 ----------------------+-------------------------------- Reporter: mmoll@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: cmake, portgroup Port: | ----------------------+-------------------------------- Comment (by jmr@…): There was a good reason; cmake always uses an SDK otherwise if a deployment target is set. -- Ticket URL: <https://trac.macports.org/ticket/37527#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37527: cmake portgroup broken with latest version of cmake, 2.8.10 ----------------------+-------------------------------- Reporter: mmoll@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: cmake, portgroup Port: | ----------------------+-------------------------------- Comment (by egall@…): Hey while you guys are changing the CMake portgroup, can you take a look at my patch for it in Issue #37341? It'd solve a lot of the problems of CMake mistakenly picking up frameworks from the /Library/Frameworks folder. -- Ticket URL: <https://trac.macports.org/ticket/37527#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts