On 01/29/2016 03:16 PM, Eric Wing wrote: > I need more guidance here. I'm not connecting the dots. > My problem seems to be that the execute_process() in > CMakeDetermineCompilerId.cmake is trying to invoke the command: > 'swift CompilerId/main.swift' [snip] > Looking at the execute_process() that gets invoked (final one in the > big if/elseif block of CMAKE_DETERMINE_COMPILER_ID_BUILD), the only > way to get the flags I need are via CMAKE_${lang}_COMPILER_ID_FLAGS.
Some refactoring may be needed to allow language-specific behavior to add flags that must be there for the check. Add an explicit internal variable or other code path to support it (that is just not set for other languages). The semantics of selecting flags from the environment in CMAKE_${lang}_COMPILER_ID_FLAGS must not change. Thanks, -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