eakoli / ios-cmake

Automatically exported from code.google.com/p/ios-cmake
0 stars 0 forks source link

MACOSX_BUNDLE property not available in TRY_COMPILE (and related system tests) #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. System testing features during CMake configuration that (internally) use the 
TRY_COMPILE command shiping with CMake (i.e. CHECK_INCLUDE_FILE, 
CHECK_FUNCTION_EXISTS, etc.) will not work since the MACOSX_BUNDLE property is 
not enabled within these functions.

What is the expected output? What do you see instead?

** BUILD FAILED **

The following build commands failed:
    Check dependencies
(1 failure)
=== BUILD NATIVE TARGET cmTryCompileExec392075837 OF PROJECT CMAKE_TRY_COMPILE 
WITH CONFIGURATION Debug ===
Check dependencies
target specifies product type 'com.apple.product-type.tool', but there's no 
such product type for the 'iphonesimulator' platform

What version of the product are you using? On what operating system?

CMake 2.8.7. iOS SDK 5.0, XCode 4.2, Mac OS X 10.6.8, ios-cmake as of 
2012-03-14.

Please provide any additional information below.

This seems to be a problem with CMake, however I'm not sure since it does not 
have been confirmed so far. See http://cmake.org/Bug/view.php?id=12288 .

Original issue reported on code.google.com by michion...@gmail.com on 14 Mar 2012 at 4:16

GoogleCodeExporter commented 8 years ago
Sorry I missed this issue. The email messages were not setup.

Right now the Toolchain aims to skip the TRY_COMPILE command by using:
set (CMAKE_CXX_COMPILER_WORKS TRUE)
set (CMAKE_C_COMPILER_WORKS TRUE)

I have not reproduced this in the latest toolchain. Does it still exist for you?

Original comment by wizzr...@gmail.com on 31 May 2012 at 2:07

GoogleCodeExporter commented 8 years ago
Currently try_compile is not supported on the iOS toolchain due to the cmake 
issue listed above. Skipping it is really the only option right now.

Original comment by wizzr...@gmail.com on 18 Sep 2012 at 5:03