[CMake] Windows RC files with Ninja

Miller, Frank FMiller at sjm.com
Thu Aug 14 17:48:25 EDT 2014


I found a workaround. Turns out that the issue is caused when not enabling C language support in the project() command. i.e I was doing

    cmake_minimum_required( VERSION 3.0.0 )
    project( proj CXX)

Changing this to

    cmake_minimum_required( VERSION 3.0.0 )
    project( proj CXX)

fixes the issue.

http://public.kitware.com/Bug/view.php?id=15088

Frank

> -----Original Message-----
> From: CMake [mailto:cmake-bounces at cmake.org] On Behalf Of Miller,
> Frank
> Sent: Tuesday, August 12, 2014 11:44 AM
> To: CMake MailingList
> Subject: [CMake] Windows RC files with Ninja
>
> Greetings,
>
> I tried to move from 2.8 to 3.0.1 today and I'm experiencing an issue with RC
> files. Looks like a simple problem but I would be baffled if I'm the first to
> experience this so I expect I have some kind of configuration issue. Here is
> the offending snippet in the rules.ninja file:
>
> rule RC_COMPILER
>   depfile = $DEP_FILE
>   deps = gcc
>   command = "" RC $in "$DEP_FILE" $out "" "c:/Program Files (x86)/Microsoft
> Visual Studio 12.0/VC/bin/cl.exe"
> c:\PROGRA~2\WI3CF2~1\8.1\bin\x86\rc.exe  $FLAGS $DEFINES /fo$out $in
>   description = Building RC object $out
>
> If I put the path to "cmcldeps.exe" in the empty quotes on the command
> line, it works as expected.
>
> Does anyone else have this problem?
>
> Frank
>
> This communication, including any attachments, may contain information
> that is proprietary, privileged, confidential or legally exempt from disclosure.
> If you are not a named addressee, you are hereby notified that you are not
> authorized to read, print, retain a copy of or disseminate any portion of this
> communication without the consent of the sender and that doing so may be
> unlawful. If you have received this communication in error, please
> immediately notify the sender via return e-mail and delete it from your
> system. In order to safeguard its employee data as well as sensitive patient,
> customer, business, legal and other information, the company uses all lawful
> means, under all applicable law, to access, monitor, preserve, collect and
> review all communications between employees and all other users only
> when, and to the extent necessary, to fulfill investigatory and other
> important business and legal responsibilities. By responding to this
> communication, or initiating additional co
>  mmunication with the company, you consent to such lawful monitoring, to
> the extent such consent is required and valid in your local area.
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake

This communication, including any attachments, may contain information that is proprietary, privileged, confidential or legally exempt from disclosure. If you are not a named addressee, you are hereby notified that you are not authorized to read, print, retain a copy of or disseminate any portion of this communication without the consent of the sender and that doing so may be unlawful. If you have received this communication in error, please immediately notify the sender via return e-mail and delete it from your system. In order to safeguard its employee data as well as sensitive patient, customer, business, legal and other information, the company uses all lawful means, under all applicable law, to access, monitor, preserve, collect and review all communications between employees and all other users only when, and to the extent necessary, to fulfill investigatory and other important business and legal responsibilities. By responding to this communication, or initiating additional communication with the company, you consent to such lawful monitoring, to the extent such consent is required and valid in your local area.


More information about the CMake mailing list