View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013179CMakeCMakepublic2012-05-01 07:592013-01-09 14:05
ReporterGerhard Aichinger 
Assigned ToPeter Kuemmel 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformPCOSWindowsOS VersionXP SP3
Product VersionCMake 2.8.8 
Target VersionCMake 2.8.10Fixed in VersionCMake 2.8.10 
Summary0013179: Unix Makefiles generator fails with MinGW tools with CMAKE_RC_COMPILER-NOTFOUND
DescriptionWith 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 ReproduceCMakeLists.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 InformationFrom 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.
TagsNo tags attached.
Attached Fileslog file icon cmake_failure.log [^] (1,426 bytes) 2012-05-01 07:59

 Relationships

  Notes
(0029380)
Brad King (manager)
2012-05-01 08:24

Usually with MinGW tools we use the "MinGW Makefiles" or "MSYS Makefiles" generator. They already set CMAKE_GENERATOR_RC to windres. Perhaps Windows-GNU.cmake could contain

 if(NOT CMAKE_GENERATOR_RC)
   set(CMAKE_GENERATOR_RC windres)
 endif()

to work with "Unix Makefiles".
(0029381)
Amine Khaldi (reporter)
2012-05-01 08:28

We (ReactOS) get something like this when we try to compile our host tools with the ninja generator.
(0029748)
Peter Kuemmel (developer)
2012-06-19 16:14
edited on: 2012-06-19 16:31

Is fixed for ninja with the merge of 'ninja-cldeps'.

(0029987)
David Cole (manager)
2012-07-09 07:13

Unset target version field; too late for a fix to go into 2.8.9; deferred until a future version.
(0030775)
Peter Kuemmel (developer)
2012-08-27 11:01

http://public.kitware.com/pipermail/cmake-commits/2012-August/013306.html [^]
(0032082)
Robert Maynard (manager)
2013-01-09 14:05

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2012-05-01 07:59 Gerhard Aichinger New Issue
2012-05-01 07:59 Gerhard Aichinger File Added: cmake_failure.log
2012-05-01 08:24 Brad King Note Added: 0029380
2012-05-01 08:24 Brad King Assigned To => Bill Hoffman
2012-05-01 08:24 Brad King Status new => backlog
2012-05-01 08:24 Brad King Target Version => CMake 2.8.9
2012-05-01 08:24 Brad King Summary Configure fails with CMAKE_RC_COMPILER-NOTFOUND => Unix Makefiles generator fails with MinGW tools with CMAKE_RC_COMPILER-NOTFOUND
2012-05-01 08:28 Amine Khaldi Note Added: 0029381
2012-06-19 16:14 Peter Kuemmel Note Added: 0029748
2012-06-19 16:31 Peter Kuemmel Note Edited: 0029748
2012-07-09 07:13 David Cole Note Added: 0029987
2012-07-09 07:18 David Cole Target Version CMake 2.8.9 =>
2012-08-20 11:53 David Cole Assigned To Bill Hoffman =>
2012-08-20 11:53 David Cole Status backlog => new
2012-08-20 11:53 David Cole Target Version => CMake 2.8.10
2012-08-27 11:00 Peter Kuemmel Assigned To => Peter Kuemmel
2012-08-27 11:00 Peter Kuemmel Status new => assigned
2012-08-27 11:01 Peter Kuemmel Note Added: 0030775
2012-08-27 11:01 Peter Kuemmel Status assigned => resolved
2012-08-27 11:01 Peter Kuemmel Fixed in Version => CMake 2.8.10
2012-08-27 11:01 Peter Kuemmel Resolution open => fixed
2013-01-09 14:05 Robert Maynard Note Added: 0032082
2013-01-09 14:05 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team