On 02/29/2016 06:59 AM, Eric Wing wrote: > I see in the CMakeSwiftInformation.cmake, there is a > <CMAKE_Swift_LINK_FLAGS>. However, I do not see a <CMAKE_Swift_FLAGS>, > just <FLAGS>.
That <FLAGS> is implicitly the flags for the corresponding language since it appears in the compilation rule specific to the language. > Additionally, in regular CMake script, I was trying to set/use > ${CMAKE_Swift_FLAGS} hoping it would just work, but it doesn't seem to > have any effect. Is this something I'm going to have to implement in > the C++ core? For the Makefile generator take a look at cmMakefileTargetGenerator::WriteTargetLanguageFlags cmMakefileTargetGenerator::WriteObjectBuildFile methods. They generate a <LANG>_FLAGS variable in the makefile and reference it. Make sure those code paths are executed for Swift. There should be similar code for the Ninja generator too. -Brad -- 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-developers