Re: [CMake] /W1 and resource.rc files
El 13/05/2018 a las 21:24, Gonzalo Garramuño escribió: I am running into trouble specifying the /W1 flag in add_definitions. This was my problem. I should have been using add_compile_options. -- Gonzalo Garramuño -- 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: https://cmake.org/mailman/listinfo/cmake
[CMake] /W1 and resource.rc files
I have a VC++ project which compiles with ninja. I add all the sources and a rc file into a single executable by placing them in a variable. I am running into trouble specifying the /W1 flag in add_definitions. The flag gets passed onto RC and it fails its compilation. Also, I get warnings of: cl : Command line warning D9025 : overriding '/W3' with '/W1' I am unsure what sets /W3. Does anyone have a suggestion on how to work around the above, with the little fuss possible? -- Gonzalo Garramuño -- 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: https://cmake.org/mailman/listinfo/cmake
[CMake] /W1 and resource.rc files
I have a VC++ project which compiles with ninja. I add all the sources and a rc file into a single executable by placing them in a variable. I am running into trouble specifying the /W1 flag in add_definitions. The flag gets passed onto RC and it fails its compilation. Also, I get warnings of: cl : Command line warning D9025 : overriding '/W3' with '/W1' I am unsure what sets /W3. -- Gonzalo Garramuño -- 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: https://cmake.org/mailman/listinfo/cmake