MantisBT - CMake
View Issue Details
0014779CMakeCMakepublic2014-02-28 04:302016-06-10 14:31
Domagoj Saric 
Kitware Robot 
normalmajoralways
closedmoved 
Windows7 x64
CMake 2.8.12.2 
 
0014779: CMAKE_TOOLCHAIN_FILE broken when used with child CMake process
When -DCMAKE_TOOLCHAIN_FILE:FILEPATH=toolchainFile is specified in a child CMake invocation from a parent CMake project the configure phase fails with a "file not found" error reported for the specified "toolchainFile".
- load a project in CMake GUI which uses a toolchain file
- this project/CMakeLists.txt must within itself again call execute_process( ${CMAKE_COMMAND} <...> -DCMAKE_TOOLCHAIN_FILE:FILEPATH=toolchainFile <...> )
- press Configure
- the child CMake invocation will fail with a "file not found error"...


The generator used was Eclipse + MinGW Makefiles...
No tags attached.
Issue History
2014-02-28 04:30Domagoj SaricNew Issue
2014-02-28 08:17Brad KingNote Added: 0035219
2014-02-28 08:19Domagoj SaricNote Added: 0035220
2014-02-28 08:23Brad KingNote Added: 0035221
2016-06-10 14:29Kitware RobotNote Added: 0042496
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0035219)
Brad King   
2014-02-28 08:17   
Are you passing a full path as the value to CMAKE_TOOLCHAIN_FILE?
(0035220)
Domagoj Saric   
2014-02-28 08:19   
Yes I simply pass ${CMAKE_TOOLCHAIN_FILE} received by the top level invocation (which finds and parses it successfully)...
I also tried making a copy of the toolchain file so as to rule out access permission problems...it didn't help
(0035221)
Brad King   
2014-02-28 08:23   
Please attach a tarball or zip file with a minimal source tree demonstrating the issue.
(0042496)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.