diff options
-rw-r--r-- | external/CMakeLists.txt | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index 43e806b4..a5e03542 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -209,21 +209,25 @@ endfunction() if(FLOORMAT_SUBMODULE-DEPENDENCIES) sets(PATH IMGUI_DIR "${CMAKE_CURRENT_SOURCE_DIR}/imgui") - function(fm_add_sdl) + if(MAGNUM_BUILD_PLUGINS_STATIC) + set(MAGNUM_WITH_SHADERTOOLS OFF) + set(MAGNUM_WITH_SHADERCONVERTER OFF) + endif() + + function(fm_add_libs) + set(fm-quiet-message 1) + add_subdirectory(json) + add_subdirectory(corrade) + add_subdirectory(magnum) + add_subdirectory(magnum-plugins) + add_subdirectory(magnum-integration) + add_subdirectory(fmt) unset(CMAKE_C_VISIBILITY_PRESET) unset(CMAKE_VISIBILITY_INLINES_HIDDEN) add_subdirectory(sdl2) endfunction() - set(fm-quiet-message 1) - add_subdirectory(json) - add_subdirectory(corrade) - fm_add_sdl() - add_subdirectory(magnum) - add_subdirectory(magnum-plugins) - add_subdirectory(magnum-integration) - add_subdirectory(fmt) - set(fm-quiet-message 0) + fm_add_libs() endif() if(FLOORMAT_SUBMODULE-DEPENDENCIES) @@ -247,8 +251,5 @@ if(NOT FLOORMAT_SUBMODULE-DEPENDENCIES) endif() set(fm-quiet-message 0) -function(message) - _message("${ARGV}") -endfunction() fm_run_hook(fm-userconfig-external-post) |