summaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
Diffstat (limited to 'CMake')
-rw-r--r--CMake/options.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/CMake/options.cmake b/CMake/options.cmake
index 2f3b36337..cabdf4e6b 100644
--- a/CMake/options.cmake
+++ b/CMake/options.cmake
@@ -95,6 +95,12 @@ if(WIN32 AND NOT MINGW AND NOT MSYS)
else()
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
endif()
+else(WIN32 AND NOT MINGW AND NOT MSYS)
+ # suppress CMake warning if the user sets FLTK_MSVC_RUNTIME_DLL on other platforms
+ if(DEFINED FLTK_MSVC_RUNTIME_DLL)
+ unset(FLTK_MSVC_RUNTIME_DLL)
+ unset(FLTK_MSVC_RUNTIME_DLL CACHE)
+ endif()
endif(WIN32 AND NOT MINGW AND NOT MSYS)
#######################################################################