MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0008453 | CMake | CMake | public | 2009-02-02 14:19 | 2016-06-10 14:30 |
| Reporter | Daniel Richard G. | ||||
| Assigned To | Bill Hoffman | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | CMake-2-6 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0008453: Cannot set CMAKE_C_COMPILER_INIT in CMAKE_USER_MAKE_RULES_OVERRIDE file | ||||
| Description | I have multiple projects making use of CMake. Each of these loads a file with common definitions by setting CMAKE_USER_MAKE_RULES_OVERRIDE before the first call to PROJECT() in the top-level CMakeLists.txt file. One of the variables that this file sets is CMAKE_C_COMPILER_INIT. In my Windows (NMake Makefiles) build environment, both cl.exe and icl.exe are available, and an environment variable is used to determine which of these two should be used. (NOTE: I am aware of the CC environment variable; it is not an option given the build rig I am using.) However, setting CMAKE_C_COMPILER_INIT in the override file has no effect, even with CACHE/FORCE. In order to make the assignment work, I have to set the variable in the top-level CMakeLists.txt file (also before the first PROJECT() call). | ||||
| Steps To Reproduce | |||||
| Additional Information | The first few lines from one of my top-level CMakeLists.txt files, just to make things a little more concrete... ----begin---- CMAKE_MINIMUM_REQUIRED(VERSION 2.6.2) SET(CMAKE_USER_MAKE_RULES_OVERRIDE CMakeCommon.txt) # This bit should be in CMakeCommon.txt, but it doesn't work there :P # IF($ENV{TG_ARCH} MATCHES "^win.*_icl") SET(CMAKE_C_COMPILER_INIT icl) ENDIF($ENV{TG_ARCH} MATCHES "^win.*_icl") PROJECT(TGExt) ----end---- | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://public.kitware.com/Bug/file/2027/CMakeLists.txt https://public.kitware.com/Bug/file/2028/CMakeCommon.txt https://public.kitware.com/Bug/file/2029/cmake-log-1.txt https://public.kitware.com/Bug/file/2030/cmake-log-2.txt | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2009-02-02 14:19 | Daniel Richard G. | New Issue | |||
| 2009-02-02 14:44 | Bill Hoffman | Note Added: 0014751 | |||
| 2009-02-02 14:44 | Bill Hoffman | Status | new => assigned | ||
| 2009-02-02 14:44 | Bill Hoffman | Assigned To | => Bill Hoffman | ||
| 2009-02-02 15:12 | Daniel Richard G. | Note Added: 0014752 | |||
| 2009-02-02 15:13 | Daniel Richard G. | File Added: CMakeLists.txt | |||
| 2009-02-02 15:13 | Daniel Richard G. | File Added: CMakeCommon.txt | |||
| 2009-02-02 15:13 | Daniel Richard G. | File Added: cmake-log-1.txt | |||
| 2009-02-02 15:13 | Daniel Richard G. | File Added: cmake-log-2.txt | |||
| 2009-02-02 15:34 | Bill Hoffman | Note Added: 0014754 | |||
| 2009-02-02 16:24 | Daniel Richard G. | Note Added: 0014756 | |||
| 2009-02-02 17:48 | Bill Hoffman | Note Added: 0014758 | |||
| 2009-02-08 18:00 | Daniel Richard G. | Note Added: 0014837 | |||
| 2016-06-10 14:27 | Kitware Robot | Note Added: 0041497 | |||
| 2016-06-10 14:27 | Kitware Robot | Status | assigned => resolved | ||
| 2016-06-10 14:27 | Kitware Robot | Resolution | open => moved | ||
| 2016-06-10 14:30 | Kitware Robot | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||