https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e278b59d3a57ab1916e47…
commit e278b59d3a57ab1916e47662e0bdff1cd11e9076
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Mon Jul 5 09:56:41 2021 +0200
Commit: Jérôme Gardou <jerome.gardou(a)reactos.org>
CommitDate: Mon Jul 5 09:56:41 2021 +0200
[CMAKE] Cache compiler paths to make some utilities happy
VS code being one of them
---
toolchain-gcc.cmake | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/toolchain-gcc.cmake b/toolchain-gcc.cmake
index f6ca04a8000..a7cc3bc82aa 100644
--- a/toolchain-gcc.cmake
+++ b/toolchain-gcc.cmake
@@ -28,9 +28,9 @@ set(CMAKE_SYSTEM_NAME Windows)
set(CMAKE_SYSTEM_PROCESSOR i686)
# Which tools to use
-set(CMAKE_C_COMPILER ${MINGW_TOOLCHAIN_PREFIX}gcc${MINGW_TOOLCHAIN_SUFFIX})
-set(CMAKE_CXX_COMPILER ${MINGW_TOOLCHAIN_PREFIX}g++${MINGW_TOOLCHAIN_SUFFIX})
-set(CMAKE_ASM_COMPILER ${MINGW_TOOLCHAIN_PREFIX}gcc${MINGW_TOOLCHAIN_SUFFIX})
+set(CMAKE_C_COMPILER ${MINGW_TOOLCHAIN_PREFIX}gcc${MINGW_TOOLCHAIN_SUFFIX} CACHE FILEPATH
"The C Compiler")
+set(CMAKE_CXX_COMPILER ${MINGW_TOOLCHAIN_PREFIX}g++${MINGW_TOOLCHAIN_SUFFIX} CACHE
FILEPATH "The C++ Compiler")
+set(CMAKE_ASM_COMPILER ${MINGW_TOOLCHAIN_PREFIX}gcc${MINGW_TOOLCHAIN_SUFFIX} CACHE
FILEPATH "The ASM Compiler")
set(CMAKE_ASM_COMPILER_ID "GNU")
set(CMAKE_MC_COMPILER ${MINGW_TOOLCHAIN_PREFIX}windmc)
set(CMAKE_RC_COMPILER ${MINGW_TOOLCHAIN_PREFIX}windres)