| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0010723 | CMake | CMake | public | 2010-05-17 12:35 | 2011-06-17 18:11 | ||||
| Reporter | Daniel Levin | ||||||||
| Assigned To | David Cole | ||||||||
| Priority | normal | Severity | major | Reproducibility | always | ||||
| Status | closed | Resolution | fixed | ||||||
| Platform | OS | OS Version | |||||||
| Product Version | CMake-2-8 | ||||||||
| Target Version | CMake 2.8.5 | Fixed in Version | CMake 2.8.5 | ||||||
| Summary | 0010723: CMAKE_OSX_SYSROOT resolved incorrectly | ||||||||
| Description | In case when XCode installed not into the /Developer directory CMake tries to resolve SDKs via command line utility: $ xcode-select --print-path But this tool adds line end "\n" character into the output, so the result path became like: "/myxcodedir/<here goes line break> SDKs" How to fix. Replace in file $cmakedir/Modules/Platform/Darwin.cmake: # If nothing is found there, then try locating the dev tools based on the xcode-select tool # (available in Xcode >= 3.0 installations) IF(NOT _CMAKE_OSX_SDKS) FIND_PROGRAM(CMAKE_XCODE_SELECT xcode-select) IF(CMAKE_XCODE_SELECT) EXECUTE_PROCESS(COMMAND ${CMAKE_XCODE_SELECT} "-print-path" OUTPUT_VARIABLE OSX_DEVELOPER_ROOT) FILE(GLOB _CMAKE_OSX_SDKS "${OSX_DEVELOPER_ROOT}/SDKs/*") ENDIF(CMAKE_XCODE_SELECT) ENDIF(NOT _CMAKE_OSX_SDKS) ... with this: # If nothing is found there, then try locating the dev tools based on the xcode-select tool # (available in Xcode >= 3.0 installations) IF(NOT _CMAKE_OSX_SDKS) FIND_PROGRAM(CMAKE_XCODE_SELECT xcode-select) IF(CMAKE_XCODE_SELECT) EXECUTE_PROCESS(COMMAND ${CMAKE_XCODE_SELECT} "-print-path" OUTPUT_VARIABLE OSX_DEVELOPER_ROOT) STRING( STRIP "${OSX_DEVELOPER_ROOT}" OSX_DEVELOPER_ROOT ) FILE(GLOB _CMAKE_OSX_SDKS "${OSX_DEVELOPER_ROOT}/SDKs/*") ENDIF(CMAKE_XCODE_SELECT) ENDIF(NOT _CMAKE_OSX_SDKS) | ||||||||
| Tags | No tags attached. | ||||||||
| Attached Files | |||||||||
| Relationships | |
| Relationships |
| Notes | |
|
(0025212) David Cole (manager) 2011-02-01 14:34 |
Fix pushed to 'next' http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=d421a433a89064926ae6aad532850b8bed113562 [^] |
|
(0026717) David Cole (manager) 2011-06-06 18:25 |
Closing resolved issues that have not been updated in more than 3 months. |
| Notes |
| Issue History | |||
| Date Modified | Username | Field | Change |
| 2010-05-17 12:35 | Daniel Levin | New Issue | |
| 2010-12-14 18:36 | David Cole | Assigned To | => David Cole |
| 2010-12-14 18:36 | David Cole | Status | new => assigned |
| 2011-02-01 14:34 | David Cole | Note Added: 0025212 | |
| 2011-02-01 14:34 | David Cole | Status | assigned => resolved |
| 2011-02-01 14:34 | David Cole | Resolution | open => fixed |
| 2011-02-16 11:43 | David Cole | Target Version | => CMake 2.8.5 |
| 2011-06-06 18:25 | David Cole | Status | resolved => closed |
| 2011-06-06 18:25 | David Cole | Note Added: 0026717 | |
| 2011-06-17 18:11 | David Cole | Fixed in Version | => CMake 2.8.5 |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |