summaryrefslogtreecommitdiffhomepage
path: root/userconfig-sthalik@Windows-GNU.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-19 20:40:27 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-19 20:54:19 +0100
commit55e508bffb9e96d375f79dec92c9d8ea7d97b9b1 (patch)
tree8c0b8c36de0f4b9896f4a0c301e02f45f7d323f0 /userconfig-sthalik@Windows-GNU.cmake
parent19daf844f7493ca05ce7b427664f7345a85752b1 (diff)
cmake: handle changing build type in userconfig
Diffstat (limited to 'userconfig-sthalik@Windows-GNU.cmake')
-rw-r--r--userconfig-sthalik@Windows-GNU.cmake52
1 files changed, 28 insertions, 24 deletions
diff --git a/userconfig-sthalik@Windows-GNU.cmake b/userconfig-sthalik@Windows-GNU.cmake
index b658b393..786f7f41 100644
--- a/userconfig-sthalik@Windows-GNU.cmake
+++ b/userconfig-sthalik@Windows-GNU.cmake
@@ -11,39 +11,43 @@ sets(STRING
CMAKE_CXX_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}"
)
+list(APPEND CMAKE_IGNORE_PATH "c:/msys64" "c:/msys64/clang64")
+list(APPEND CMAKE_IGNORE_PREFIX_PATH "c:/msys64" "c:/msys64/clang64")
+
add_compile_options(-fdiagnostics-color=always)
set(OpenCV_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../opentrack-depends/opencv/build-gcc/install" CACHE PATH "" FORCE)
-sets(BOOL FLOORMAT_PRECOMPILED-HEADERS ON)
-
if(CMAKE_BUILD_TYPE STREQUAL "DEBUG")
add_definitions(-D_GLIBCXX_ASSERTIONS)
- sets(BOOL FLOORMAT_PRECOMPILED-HEADERS OFF)
+ sets(BOOL
+ FLOORMAT_PRECOMPILED-HEADERS OFF
+ CORRADE_BUILD_TESTS ON
+ MAGNUM_BUILD_TESTS ON
+ 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
+ MAGNUM_BUILD_STATIC_UNIQUE_GLOBALS ON
+ )
+else()
+ sets(BOOL
+ FLOORMAT_PRECOMPILED-HEADERS ON
+ CORRADE_BUILD_TESTS OFF
+ MAGNUM_BUILD_TESTS 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
+ MAGNUM_BUILD_STATIC_UNIQUE_GLOBALS OFF
+ )
endif()
# for building submodule dependencies
function(fm-userconfig-external)
- sets(BOOL
- CORRADE_BUILD_TESTS OFF
- MAGNUM_BUILD_TESTS OFF
- )
- if(CMAKE_BUILD_TYPE STREQUAL "DEBUG")
- sets(BOOL
- CORRADE_BUILD_TESTS ON
- MAGNUM_BUILD_TESTS ON
- )
- else()
- sets(BOOL
- FLOORMAT_PRECOMPILED-HEADERS ON
- 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
- MAGNUM_BUILD_STATIC_UNIQUE_GLOBALS OFF
- )
- endif()
add_compile_options(
-Wno-ignored-attributes
-Wno-unused-function