[cmake-developers] [CMake 0013179]: Configure fails with CMAKE_RC_COMPILER-NOTFOUND

Mantis Bug Tracker mantis at public.kitware.com
Tue May 1 07:59:21 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13179 
====================================================================== 
Reported By:                Gerhard Aichinger
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13179
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-05-01 07:59 EDT
Last Modified:              2012-05-01 07:59 EDT
====================================================================== 
Summary:                    Configure fails with CMAKE_RC_COMPILER-NOTFOUND
Description: 
With CMake 2.8.8 each configure without setting parameter -DCMAKE_RC_COMPILER
fails. 
See attached file cmake_failure.log
CMake 2.6.4 configuring the same project works well without setting
CMAKE_RC_COMPILER.

Steps to Reproduce: 
CMakeLists.txt:
--------------------------
project(Test)
cmake_minimum_required(VERSION 2.8)
set(SRC main.cpp)
add_executable(Test ${SRC})

main.cpp:
--------------------------
int main() {
  return 0;
}

DOS console:

cmake -G "Unix Makefiles"
==> build failed

cmake -G "Unix Makefiles" -DCMAKE_RC_COMPILER=C:/MinGW/bin/windres.exe
==> build ok


Additional Information: 
>From my point of view C:\Programme\CMake
2.8\share\cmake-2.8\Modules\Platform\Windows-GNU.cmake file should be modified
(see C:\Programme\CMake2.8\share\cmake-2.8\Modules\Platform\CYGWIN-GNU.cmake
file)
If I added "set(CMAKE_GENERATOR_RC windres)" before "enable_language(RC)",
then build works correct.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-05-01 07:59 Gerhard AichingerNew Issue                                    
2012-05-01 07:59 Gerhard AichingerFile Added: cmake_failure.log                 
  
======================================================================




More information about the cmake-developers mailing list