From 7dcf9e624734b10162c245d01bd735e3a12ebc4a Mon Sep 17 00:00:00 2001 From: Tristan Labelle Date: Fri, 27 Dec 2024 07:06:41 -0500 Subject: [PATCH] Forward CMake flags to Generator subproject --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b12de2b4..5b1d5764 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,7 +22,9 @@ execute_process( -G "${CMAKE_GENERATOR}" -D "CMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}" -D "CMAKE_C_COMPILER=${CMAKE_C_COMPILER}" + -D "CMAKE_C_FLAGS_DEBUG=${CMAKE_C_FLAGS_DEBUG}" -D "CMAKE_Swift_COMPILER=${CMAKE_Swift_COMPILER}" + -D "CMAKE_Swift_FLAGS_DEBUG=${CMAKE_Swift_FLAGS_DEBUG}" -D "CMAKE_EXPORT_COMPILE_COMMANDS=${CMAKE_EXPORT_COMPILE_COMMANDS}" COMMAND_ERROR_IS_FATAL ANY)