[cmake-developers] [CMake 0015148]: CMAKE_FORCE_C_COMPILER requests full path to cl.exe

Mantis Bug Tracker mantis at public.kitware.com
Wed Sep 10 11:01:59 EDT 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15148 
====================================================================== 
Reported By:                a.grudin
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15148
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-09-10 11:01 EDT
Last Modified:              2014-09-10 11:01 EDT
====================================================================== 
Summary:                    CMAKE_FORCE_C_COMPILER requests full path to cl.exe
Description: 
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")

Steps to Reproduce: 
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)

Additional Information: 
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!
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-09-10 11:01 a.grudin       New Issue                                    
======================================================================



More information about the cmake-developers mailing list