From 4213a3d2d1aae092463d948ddee137daea62a3b7 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 7 May 2022 17:34:34 +0300 Subject: [PATCH] rename USE_MSVC_RUNTIME_LIBRARY_DLL to GLFW_USE_MSVC_RUNTIME_LIBRARY_DLL --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f5e538bf..8d434177 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,7 +43,7 @@ cmake_dependent_option(GLFW_BUILD_WAYLAND "Build support for Wayland" cmake_dependent_option(GLFW_USE_HYBRID_HPG "Force use of high-performance GPU on hybrid systems" OFF "WIN32" OFF) -cmake_dependent_option(USE_MSVC_RUNTIME_LIBRARY_DLL "Use MSVC runtime library DLL" ON +cmake_dependent_option(GLFW_USE_MSVC_RUNTIME_LIBRARY_DLL "Use MSVC runtime library DLL" ON "MSVC" OFF) set(GLFW_LIBRARY_TYPE "${GLFW_LIBRARY_TYPE}" CACHE STRING @@ -88,7 +88,7 @@ endif() # Apply Microsoft C runtime library option # This is here because it also applies to tests and examples #-------------------------------------------------------------------- -if (MSVC AND NOT USE_MSVC_RUNTIME_LIBRARY_DLL) +if (MSVC AND NOT GLFW_USE_MSVC_RUNTIME_LIBRARY_DLL) if (CMAKE_VERSION VERSION_LESS 3.15) foreach (flag CMAKE_C_FLAGS CMAKE_C_FLAGS_DEBUG