diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-10-09 16:01:54 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-10-09 16:04:38 +0200 |
| commit | 81d3ccefa4b6c3cbaeab20231b2c39705dfb3fb8 (patch) | |
| tree | 7bf0ff43642849f8215ff97e900d8248b81394fb /CMake/options.cmake | |
| parent | 99c36b44ac0191e8d6052e418de1a9eb6fac7378 (diff) | |
CMake: ignore FLTK_MSVC_RUNTIME_DLL on other platforms
This commit suppresses a CMake warning if FLTK_MSVC_RUNTIME_DLL is
defined on the CMake commandline on platforms that don't use it.
Diffstat (limited to 'CMake/options.cmake')
| -rw-r--r-- | CMake/options.cmake | 6 |
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) ####################################################################### |
