MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0015404 | CMake | CMake | public | 2015-02-12 05:17 | 2015-07-08 08:57 | |||||
Reporter | Gunnar Roth | |||||||||
Assigned To | Brad King | |||||||||
Priority | normal | Severity | minor | Reproducibility | always | |||||
Status | closed | Resolution | fixed | |||||||
Platform | windows ce | OS | windows ce | OS Version | all | |||||
Product Version | CMake 3.1.2 | |||||||||
Target Version | CMake 3.3 | Fixed in Version | CMake 3.3 | |||||||
Summary | 0015404: cmake dos not set CMAKE_RC_FLAGS to include the platform defines like WIN32_WCE UNDER_CE etc. | |||||||||
Description | when people use things like #idef UNDER_CE in the .rc files it is not recognised as being defined because cmake dos not set CMAKE_RC_FLAGS to include the platform defines like WIN32_WCE UNDER_CE etc. my proposal is to patch windows-msvc.cmake like this: set(_RTC1 "") set(_FLAGS_CXX " /GR /EHsc") set(CMAKE_C_STANDARD_LIBRARIES_INIT "coredll.lib ole32.lib oleaut32.lib uuid.lib commctrl.lib") set(CMAKE_EXE_LINKER_FLAGS_INIT "${CMAKE_EXE_LINKER_FLAGS_INIT} /NODEFAULTLIB:libc.lib /NODEFAULTLIB:oldnames.lib") - + set(CMAKE_RC_FLAGS "${_PLATFORM_DEFINES} ${_PLATFORM_DEFINES_C}") + if (MSVC_VERSION LESS 1600) set(CMAKE_C_STANDARD_LIBRARIES_INIT "${CMAKE_C_STANDARD_LIBRARIES_INIT} corelibc.lib") endif () i had the task to report this issue on my list for a very long time now. finally done. | |||||||||
Steps To Reproduce | ||||||||||
Additional Information | ||||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | ||||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2015-02-12 05:17 | Gunnar Roth | New Issue | ||||||||
2015-02-12 13:07 | Brad King | Note Added: 0037960 | ||||||||
2015-02-12 13:11 | Brad King | Note Added: 0037961 | ||||||||
2015-02-12 13:25 | Gunnar Roth | Note Added: 0037962 | ||||||||
2015-02-13 09:47 | Brad King | Relationship added | related to 0014552 | |||||||
2015-02-25 11:40 | Brad King | Note Added: 0038068 | ||||||||
2015-02-25 11:41 | Brad King | Assigned To | => Brad King | |||||||
2015-02-25 11:41 | Brad King | Status | new => resolved | |||||||
2015-02-25 11:41 | Brad King | Resolution | open => fixed | |||||||
2015-02-25 11:41 | Brad King | Fixed in Version | => CMake 3.3 | |||||||
2015-02-25 11:41 | Brad King | Target Version | => CMake 3.3 | |||||||
2015-07-08 08:57 | Robert Maynard | Note Added: 0039064 | ||||||||
2015-07-08 08:57 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|