diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-02 21:39:18 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-03 01:22:13 +0200 |
commit | c9d56d6fb1c8eca558db937b99b89535893950a0 (patch) | |
tree | 81a4cb7c34af7e78fab8cc2e5780511e8c451978 /userconfig-sthalik@Windows-MSVC.cmake | |
parent | fc1a03f9a257faf78de7838954709593ab4da628 (diff) |
fix some harmless msvc stuff
Diffstat (limited to 'userconfig-sthalik@Windows-MSVC.cmake')
-rw-r--r-- | userconfig-sthalik@Windows-MSVC.cmake | 50 |
1 files changed, 29 insertions, 21 deletions
diff --git a/userconfig-sthalik@Windows-MSVC.cmake b/userconfig-sthalik@Windows-MSVC.cmake index 4f2b23d3..6aa18c10 100644 --- a/userconfig-sthalik@Windows-MSVC.cmake +++ b/userconfig-sthalik@Windows-MSVC.cmake @@ -8,28 +8,36 @@ set(OpenCV_DIR "F:/dev/opentrack-depends/opencv/build-amd64/install" CACHE PATH list(APPEND CMAKE_IGNORE_PATH "c:/msys64") list(APPEND CMAKE_IGNORE_PREFIX_PATH "c:/msys64") set(CMAKE_INSTALL_MESSAGE NEVER) +sets(PATH CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/install") -if(CMAKE_BUILD_TYPE STREQUAL "DEBUG") - sets(BOOL - FLOORMAT_PRECOMPILED-HEADERS OFF - SDL_STATIC OFF - SDL_SHARED ON - CORRADE_BUILD_STATIC OFF - CORRADE_PLUGINMANAGER_NO_DYNAMIC_PLUGIN_SUPPORT OFF - MAGNUM_BUILD_STATIC OFF - MAGNUM_BUILD_PLUGINS_STATIC OFF - ) -else() - sets(BOOL - FLOORMAT_PRECOMPILED-HEADERS OFF - SDL_STATIC ON - SDL_SHARED OFF - CORRADE_BUILD_STATIC ON - CORRADE_PLUGINMANAGER_NO_DYNAMIC_PLUGIN_SUPPORT ON - MAGNUM_BUILD_STATIC ON - MAGNUM_BUILD_PLUGINS_STATIC ON - ) -endif() +sets(BOOL FLOORMAT_PRECOMPILED-HEADERS OFF) +sets(BOOL FLOORMAT_SUBMODULE-SDL2 ON) + +add_link_options(-STACK:41943040) + +function(fm-userconfig-external) + if(CMAKE_BUILD_TYPE STREQUAL "DEBUG") + sets(BOOL + SDL_STATIC OFF + SDL_SHARED ON + SDL_FORCE_STATIC_VCRT OFF + CORRADE_BUILD_STATIC OFF + CORRADE_PLUGINMANAGER_NO_DYNAMIC_PLUGIN_SUPPORT OFF + MAGNUM_BUILD_STATIC OFF + MAGNUM_BUILD_PLUGINS_STATIC OFF + ) + else() + sets(BOOL + SDL_STATIC ON + SDL_SHARED OFF + SDL_FORCE_STATIC_VCRT ON + CORRADE_BUILD_STATIC ON + CORRADE_PLUGINMANAGER_NO_DYNAMIC_PLUGIN_SUPPORT ON + MAGNUM_BUILD_STATIC ON + MAGNUM_BUILD_PLUGINS_STATIC ON + ) + endif() +endfunction() function(fm-userconfig-src) add_compile_options(-W4 -Qvec-report:1) |