MantisBT - CMake
View Issue Details
0015148CMakeCMakepublic2014-09-10 11:012015-03-02 08:57
a.grudin 
 
normalmajoralways
closedwon't fix 
Windows PhoneWindows 8
CMake 3.0.1 
 
0015148: CMAKE_FORCE_C_COMPILER requests full path to cl.exe
The CMake version 2.8 requires just relative path to cl.exe. Like:
include(CMakeForceCompiler)
CMAKE_FORCE_C_COMPILER("cl.exe" "ARM")

And it was convinient. But for new one the options requires to be absolute path.
CMAKE_FORCE_C_COMPILER("C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/WPSDK/WP80/bin/cl.exe" "ARM")
Command line:
cmake -G "Visual Studio 11 2012 ARM" -T"v110_wp80" ../Project


CMakeLists.txt:
include(CMakeForceCompiler)
CMAKE_FORCE_C_COMPILER("cl.exe" "ARM")
CMAKE_FORCE_CXX_COMPILER("cl.exe" "ARM")
endif()

project(SE)
Also check system files when warning about unused and uninitialized variables.
CMake Error at CMakeLists.txt:385 (project):
  The CMAKE_C_COMPILER:

    cl.exe

  is not a full path and was not found in the PATH.



-- Configuring incomplete, errors occurred!
No tags attached.
Issue History
2014-09-10 11:01a.grudinNew Issue
2014-09-10 11:18Brad KingNote Added: 0036776
2014-09-11 13:04Brad KingStatusnew => resolved
2014-09-11 13:04Brad KingResolutionopen => won't fix
2015-03-02 08:57Robert MaynardNote Added: 0038116
2015-03-02 08:57Robert MaynardStatusresolved => closed

Notes
(0036776)
Brad King   
2014-09-10 11:18   
This requirement was intentionally introduced as part of cleanups made with an increment of the major version number.

FYI, explicit support for Windows Phone was recently added to Visual Studio generators in the development version. Nightly binaries are here:

 http://www.cmake.org/files/dev/?C=M;O=D [^]

One can run a command like

 cmake .. -G "Visual Studio 12 2013" -DCMAKE_SYSTEM_NAME=WindowsPhone -DCMAKE_SYSTEM_VERSION=8.1

If you try it out please come to the cmake-developers list with any feedback:

 http://www.cmake.org/mailman/listinfo/cmake-developers [^]
(0038116)
Robert Maynard   
2015-03-02 08:57   
Closing resolved issues that have not been updated in more than 4 months.