[cmake-developers] [CMake 0015404]: cmake dos not set CMAKE_RC_FLAGS to include the platform defines like WIN32_WCE UNDER_CE etc.
Mantis Bug Tracker
mantis at public.kitware.com
Thu Feb 12 05:17:15 EST 2015
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=15404
======================================================================
Reported By: Gunnar Roth
Assigned To:
======================================================================
Project: CMake
Issue ID: 15404
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2015-02-12 05:17 EST
Last Modified: 2015-02-12 05:17 EST
======================================================================
Summary: 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.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-02-12 05:17 Gunnar Roth New Issue
======================================================================
More information about the cmake-developers
mailing list