summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-11-05 01:19:31 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-11-05 01:19:31 +0100
commitf582c8815b9388c850436db8d90323d2a05cee1e (patch)
treee71cd6ef8d50db840ac8f20a1b2ae7ebced7f448
parentf03f8fd0afa7bb97c64f8bec9de60617e16f7243 (diff)
cmake/msvc: specify ninja generator's path
Should unbreak generation after a Visual Studio upgrade.
-rw-r--r--cmake/msvc.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/msvc.cmake b/cmake/msvc.cmake
index ea01163a..5638a3d8 100644
--- a/cmake/msvc.cmake
+++ b/cmake/msvc.cmake
@@ -26,6 +26,10 @@ endif()
set(CMAKE_INSTALL_PREFIX_INIT "${CMAKE_BINARY_DIR}/install")
+if(CMAKE_GENERATOR STREQUAL "Ninja" OR CMAKE_GENERATOR STREQUAL "Ninja Multi-Config")
+ set(CMAKE_MAKE_PROGRAM ninja)
+endif()
+
set(CMAKE_C_COMPILER_INIT cl.exe)
set(CMAKE_CXX_COMPILER_INIT cl.exe)
set(CMAKE_ASM_NASM_COMPILER_INIT nasm.exe)