MantisBT - CMake | |||||||||||||||||
View Issue Details | |||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||
0007316 | CMake | CMake | public | 2008-07-09 11:20 | 2008-07-16 10:40 | ||||||||||||
Reporter | Matt Leotta | ||||||||||||||||
Assigned To | Bill Hoffman | ||||||||||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||||||||||
Status | closed | Resolution | fixed | ||||||||||||||
Platform | OS | OS Version | |||||||||||||||
Product Version | CMake-2-6 | ||||||||||||||||
Target Version | Fixed in Version | ||||||||||||||||
Summary | 0007316: TRY_RUN fails to compile with generator for Xcode | ||||||||||||||||
Description | CMake 2.6.0 seems produces faulty Xcode projects for running TRY_RUN tests in some cases. These fail to compile. It seems to be related to the use of double quote characters in CMAKE_FLAGS -DCOMPILE_DEFINTIONS:STRING=${SOME_STRING} For example, if SOME_STRING is "-I \"/some/path\"" it will fail whereas if it is "-I /some/path" it will work fine. The quotes are needed in case the path contains spaces. This was discovered while compiling VXL. This comes up in the DETERMINE_TYPE macro in vxl/src/config/cmake/config/vxl_config_macros.cmake. As a result vxl_byte, vxl_int_32, etc are all defined to be void. | ||||||||||||||||
Steps To Reproduce | |||||||||||||||||
Additional Information | Mac OS X 10.5.4 (Intel) Xcode 3.0 CMake 2.6.0 I've attached a simple CMakeLists.txt file that isolates the problem. The error message from TRY_RUN is: Change Dir: /projects/test/my bin/CMakeFiles/CMakeTmp Run Build Command:/Applications/CMake\ 2.6-0.app/Contents/bin/cmakexbuild -project CMAKE_TRY_COMPILE.xcodeproj build -target cmTryCompileExec -configuration Debug 2008-07-09 08:32:20.045 xcodebuild[4650:613] CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary. 2008-07-09 08:32:20.046 xcodebuild[4650:613] XML parser error: Unexpected character / at line 1 Old-style plist parser error: Missing ';' on line 168 xcodebuild: Error: couldn't load project /projects/test/my bin/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.xcodeproj | ||||||||||||||||
Tags | No tags attached. | ||||||||||||||||
Relationships |
| ||||||||||||||||
Attached Files | CMakeLists.txt (2,530) 2008-07-09 11:20 https://public.kitware.com/Bug/file/1588/CMakeLists.txt | ||||||||||||||||
Issue History | |||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||
2008-07-09 11:20 | Matt Leotta | New Issue | |||||||||||||||
2008-07-09 11:20 | Matt Leotta | File Added: CMakeLists.txt | |||||||||||||||
2008-07-14 17:09 | Hans Johnson | Note Added: 0012697 | |||||||||||||||
2008-07-14 17:28 | Brad King | Relationship added | related to 0007315 | ||||||||||||||
2008-07-14 17:47 | Brad King | Relationship added | related to 0004022 | ||||||||||||||
2008-07-14 17:48 | Brad King | Note Added: 0012699 | |||||||||||||||
2008-07-16 09:27 | Bill Hoffman | Note Added: 0012718 | |||||||||||||||
2008-07-16 09:33 | Brad King | Note Added: 0012719 | |||||||||||||||
2008-07-16 09:41 | Matt Leotta | Note Added: 0012720 | |||||||||||||||
2008-07-16 09:53 | Brad King | Note Added: 0012721 | |||||||||||||||
2008-07-16 10:40 | Brad King | Status | new => assigned | ||||||||||||||
2008-07-16 10:40 | Brad King | Assigned To | => Bill Hoffman | ||||||||||||||
2008-07-16 10:40 | Brad King | Status | assigned => closed | ||||||||||||||
2008-07-16 10:40 | Brad King | Resolution | open => fixed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|