aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-04-25 02:12:43 -0700
committerChris Robinson <[email protected]>2020-04-25 02:12:43 -0700
commite3f6afafdeab3c5ec8e28c3f9b6b26fbcf5f37bf (patch)
treee23c8c6b57d31382a6de1dd2a2153b41860b158d /CMakeLists.txt
parentbe476c793574fcde7bb78df1595257cc52f4c93a (diff)
Remove some hopefully unneeded macros
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 1 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 16f2351b..169fe5a7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -91,7 +91,7 @@ SET(LINKER_FLAGS )
SET(EXTRA_LIBS )
IF(WIN32)
- SET(CPP_DEFS ${CPP_DEFS} _WIN32 _WIN32_WINNT=0x0502)
+ SET(CPP_DEFS ${CPP_DEFS} _WIN32)
OPTION(ALSOFT_BUILD_ROUTER "Build the router (EXPERIMENTAL; creates OpenAL32.dll and soft_oal.dll)" OFF)
@@ -851,9 +851,6 @@ IF(WIN32)
get_windowssdk_include_dirs(${WINDOWSSDK_PREFERRED_DIR} WINSDK_INCLUDE_DIRS)
ENDIF()
- SET(OLD_REQUIRED_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS})
- SET(CMAKE_REQUIRED_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS} -D_WIN32_WINNT=0x0502)
-
# Check MMSystem backend
CHECK_INCLUDE_FILES("windows.h;mmsystem.h" HAVE_MMSYSTEM_H)
FIND_LIBRARY(WINMM_LIBRARY NAMES winmm
@@ -892,9 +889,6 @@ IF(WIN32)
SET(ALC_OBJS ${ALC_OBJS} alc/backends/wasapi.cpp alc/backends/wasapi.h)
ENDIF()
ENDIF()
-
- SET(CMAKE_REQUIRED_DEFINITIONS ${OLD_REQUIRED_DEFINITIONS})
- UNSET(OLD_REQUIRED_DEFINITIONS)
ENDIF()
IF(ALSOFT_REQUIRE_WINMM AND NOT HAVE_WINMM)
MESSAGE(FATAL_ERROR "Failed to enabled required WinMM backend")