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.
This commit is contained in:
parent
99c36b44ac
commit
81d3ccefa4
@ -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)
|
||||
|
||||
#######################################################################
|
||||
|
@ -217,10 +217,11 @@ FLTK_GRAPHICS_GDIPLUS - default ON (Windows only).
|
||||
Make FLTK use GDI+ to draw oblique lines and curves resulting in
|
||||
antialiased graphics. If this option is OFF standard GDI is used.
|
||||
|
||||
FLTK_MSVC_RUNTIME_DLL - default ON (Windows only: Visual Studio and NMake).
|
||||
FLTK_MSVC_RUNTIME_DLL - default ON (Windows: Visual Studio, NMake, clang).
|
||||
Select whether the build uses the MS runtime DLL (ON) or not (OFF).
|
||||
Default is ON: either /MD or /MDd for Release or Debug, respectively.
|
||||
Select OFF for either /MT or /MTd for Release or Debug, respectively.
|
||||
If this variable is defined on other platforms it is silently ignored.
|
||||
|
||||
FLTK_OPTION_CAIRO_EXT - default OFF
|
||||
Enable extended libcairo support - see README.Cairo.txt.
|
||||
|
Loading…
x
Reference in New Issue
Block a user