diff options
author | Gazyi <Gazyi@users.noreply.github.com> | 2024-10-01 15:28:58 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-01 14:28:58 +0200 |
commit | 71349f05b69923dbf091d27f8e256bcc3022e859 (patch) | |
tree | 47dfcf758220148e836f796ecffd91a70507814b /CMakeLists.txt | |
parent | 6737a344c012c0f7fd19cd593949dd3dbe5a0cb7 (diff) | |
download | NorthstarLauncher-71349f05b69923dbf091d27f8e256bcc3022e859.tar.gz NorthstarLauncher-71349f05b69923dbf091d27f8e256bcc3022e859.zip |
Force `_WIN32_WINNT` variable (#770)v1.28.3-rc1
to avoid instant crashes on older Windows platforms.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a9646ae1..c9516e52 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,3 +50,7 @@ include_directories(primedev/thirdparty) # Targets add_subdirectory(primedev) +# Forces Minizip to not use functions that are not available in Win 7 libraries. +if(WIN32) + target_compile_definitions(minizip PUBLIC -D_WIN32_WINNT=0x0601) +endif() |