MantisBT - CMake
View Issue Details
0015669CMakeModulespublic2015-07-29 08:072016-01-04 11:52
Seppo Tomperi 
Gregor Jasny 
normalminoralways
closedfixed 
Apple MacOS X10.10.4
 
CMake 3.4CMake 3.4 
0015669: XCTest for iOS target has incorrect TEST_HOST
Path to executable in TEST_HOST is not correct when targeting iOS device.
unzip iOSNavAppXCTest.zip
cd iOSNavAppXCTest
mkdir build
cd build
cmake -G Xcode ..

grep TEST_HOST NavApp3.xcodeproj/project.pbxproj

####

TEST_HOST variable has extra directory: "Contents/MacOS", which is not there. Executable is in NavApp3.app-directory.

If "Contents/MacOS" is edited away from project file then project works and XCTests can be run in simulator and on iPhone.
No tags attached.
zip iOSNavAppXCTest.zip (20,362) 2015-07-29 08:07
https://public.kitware.com/Bug/file/5493/iOSNavAppXCTest.zip
Issue History
2015-07-29 08:07Seppo TomperiNew Issue
2015-07-29 08:07Seppo TomperiFile Added: iOSNavAppXCTest.zip
2015-07-29 08:47Gregor JasnyAssigned To => Gregor Jasny
2015-07-29 08:47Gregor JasnyStatusnew => assigned
2015-07-29 09:28Gregor JasnyNote Added: 0039185
2015-08-19 15:49Gregor JasnyNote Edited: 0039185bug_revision_view_page.php?bugnote_id=39185#r1871
2015-08-19 15:49Gregor JasnyNote Added: 0039303
2015-08-20 11:12Brad KingNote Added: 0039309
2015-08-24 09:58Brad KingNote Added: 0039320
2015-08-24 09:58Brad KingStatusassigned => resolved
2015-08-24 09:58Brad KingResolutionopen => fixed
2015-08-24 09:58Brad KingFixed in Version => CMake 3.4
2015-08-24 09:58Brad KingTarget Version => CMake 3.4
2016-01-04 11:52Robert MaynardNote Added: 0040123
2016-01-04 11:52Robert MaynardStatusresolved => closed

Notes
(0039185)
Gregor Jasny   
2015-07-29 09:28   
(edited on: 2015-08-19 15:49)
From a first short look $<TARGET_FILE:${testee}> is evaluating to the wrong location.

(0039303)
Gregor Jasny   
2015-08-19 15:49   
I pushed a topic branch: ios-app-bundle-layout
See thread: http://public.kitware.com/pipermail/cmake-developers/2015-August/026061.html [^]
(0039309)
Brad King   
2015-08-20 11:12   
Re 0015669:0039303: Merged to 'next' for testing:

 Fix iOS Bundle layouts
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=c9ea75ec [^]
(0039320)
Brad King   
2015-08-24 09:58   
Re 0015669:0039309: After revisions to fix trouble exposed by nightly testing, the commit is now:

 Fix iOS Bundle layouts
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=744e6c49 [^]
(0040123)
Robert Maynard   
2016-01-04 11:52   
Closing resolved issues that have not been updated in more than 4 months.