[cmake-developers] [CMake 0011773]: CMake ignore .RC files when cross building

Mantis Bug Tracker mantis at public.kitware.com
Thu Jan 27 22:00:56 EST 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=11773 
====================================================================== 
Reported By:                Dongsheng Song
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   11773
Category:                   CCMake
Reproducibility:            always
Severity:                   major
Priority:                   high
Status:                     new
====================================================================== 
Date Submitted:             2011-01-27 22:00 EST
Last Modified:              2011-01-27 22:00 EST
====================================================================== 
Summary:                    CMake ignore .RC files when cross building
Description: 
For example:

ADD_LIBRARY(freetds-ct SHARED freetds-ct.def freetds-ct.rc
        blk.c
        cs.c
        ct.c
        ctutil.c)

If I compile on Windows, CMake can use freetds-ct.rc, but when I do a cross
compile on Linux:

CFLAGS="-m64" CXXFLAGS="-m64" LDFLAGS="-m64" RCFLAGS="-F pe-x86-64"\
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_SYSTEM_NAME=Windows
-DCMAKE_C_COMPILER=i686-w64-mingw32-gcc

CMake ignore freetds-ct.rc silently.

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-01-27 22:00 Dongsheng Song New Issue                                    
======================================================================




More information about the cmake-developers mailing list