MantisBT - CMake | |||||||||||||||
View Issue Details | |||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||
0015329 | CMake | CMake | public | 2014-12-28 06:35 | 2016-01-04 11:52 | ||||||||||
Reporter | Egor P. | ||||||||||||||
Assigned To | |||||||||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||||||||
Status | closed | Resolution | fixed | ||||||||||||
Platform | OS | OS X | OS Version | 10.10.1 | |||||||||||
Product Version | CMake 3.1 | ||||||||||||||
Target Version | Fixed in Version | CMake 3.2 | |||||||||||||
Summary | 0015329: try_compile fails for iOS targets | ||||||||||||||
Description | This is related to: http://www.cmake.org/Bug/view.php?id=15214 [^] When crosscompiling for iOS I see an error: Check dependencies target specifies product type 'com.apple.product-type.tool', but there's no such product type for the 'iphoneos' platform This is during configure stage. In that ticket above you mentioned two commits: http://www.cmake.org/gitweb?p=cmake.git;a=commitdiff;h=c48f6e12 [^] http://www.cmake.org/gitweb?p=cmake.git;a=commitdiff;h=b91020f6 [^] The fix to id_product_type is related for some "...bundle.unit-test". + set(id_product_type "com.apple.product-type.tool") if(CMAKE_OSX_SYSROOT) set(id_sdkroot "SDKROOT = \"${CMAKE_OSX_SYSROOT}\";") + if(CMAKE_OSX_SYSROOT MATCHES "(^|/)[Ii][Pp][Hh][Oo][Nn][Ee]") + set(id_product_type "com.apple.product-type.bundle.unit-test") + endif() At the second commit related to code signing we see: + if(CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY) + set(id_code_sign_identity "CODE_SIGN_IDENTITY = \"${CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY}\";") + else() + set(id_code_sign_identity "") + endif() Can you please add such switch to id_product_type? E.g.: if(CMAKE_XCODE_ATTRIBUTE_ID_PRODUCT_TYPE) set(id_product_type "ID_PRODUCT_TYPE = \"${CMAKE_XCODE_ATTRIBUTE_ID_PRODUCT_TYPE}\";") else() ........ endif() I'm asking this because I found the next page with different possible product types: https://github.com/freewizard/Xcode-Template-iOS-dylib/blob/master/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Specifications/iPhone%20Simulator%20ProductTypes.xcspec [^] And when I set PRODUCT_TYPE = com.apple.product-type.application in Xcode manually, the build works. | ||||||||||||||
Steps To Reproduce | |||||||||||||||
Additional Information | |||||||||||||||
Tags | No tags attached. | ||||||||||||||
Relationships |
| ||||||||||||||
Attached Files | |||||||||||||||
Issue History | |||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||
2014-12-28 06:35 | Egor P. | New Issue | |||||||||||||
2014-12-28 06:40 | Egor P. | Note Added: 0037533 | |||||||||||||
2014-12-28 06:58 | Egor P. | Note Added: 0037534 | |||||||||||||
2014-12-28 07:06 | Egor P. | Note Added: 0037535 | |||||||||||||
2014-12-28 08:34 | Egor P. | Note Added: 0037537 | |||||||||||||
2014-12-28 08:34 | Egor P. | Note Edited: 0037537 | bug_revision_view_page.php?bugnote_id=37537#r1666 | ||||||||||||
2015-01-08 11:53 | Brad King | Target Version | => CMake 3.2 | ||||||||||||
2015-01-08 11:53 | Brad King | Summary | Cannot set CMAKE_XCODE_ATTRIBUTE_ID_PRODUCT_TYPE manually => try_compile fails for iOS targets | ||||||||||||
2015-01-08 11:55 | Brad King | Note Added: 0037632 | |||||||||||||
2015-01-11 15:45 | Brad King | Relationship added | related to 0015214 | ||||||||||||
2015-01-19 10:16 | Brad King | Status | new => backlog | ||||||||||||
2015-01-19 10:16 | Brad King | Target Version | CMake 3.2 => | ||||||||||||
2015-01-19 10:20 | Brad King | Note Added: 0037737 | |||||||||||||
2015-01-27 09:30 | Egor P. | Note Added: 0037836 | |||||||||||||
2015-01-31 09:57 | Egor P. | Note Added: 0037871 | |||||||||||||
2015-03-18 15:09 | Gregor Jasny | Note Added: 0038242 | |||||||||||||
2015-03-18 17:33 | Egor P. | Note Added: 0038248 | |||||||||||||
2015-03-18 17:34 | Egor P. | Note Edited: 0038248 | bug_revision_view_page.php?bugnote_id=38248#r1732 | ||||||||||||
2015-03-18 17:34 | Egor P. | Note Edited: 0038248 | bug_revision_view_page.php?bugnote_id=38248#r1733 | ||||||||||||
2015-03-19 08:21 | Brad King | Status | backlog => resolved | ||||||||||||
2015-03-19 08:21 | Brad King | Resolution | open => fixed | ||||||||||||
2015-03-19 08:21 | Brad King | Fixed in Version | => CMake 3.2 | ||||||||||||
2015-08-11 10:40 | Gregor Jasny | Relationship added | has duplicate 0012288 | ||||||||||||
2016-01-04 11:52 | Robert Maynard | Note Added: 0040112 | |||||||||||||
2016-01-04 11:52 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|