Skip to content

Commit 49d7831

Browse files
committed
Fix build win32 by clang fail due to openal set incorrect preprocessors
1 parent cd851ce commit 49d7831

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

3rdparty/openal/CMakeLists.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -299,14 +299,6 @@ else()
299299
set(C_FLAGS ${C_FLAGS} -Werror)
300300
endif()
301301

302-
# We want RelWithDebInfo to actually include debug stuff (define _DEBUG
303-
# instead of NDEBUG)
304-
foreach(flag_var CMAKE_C_FLAGS_RELWITHDEBINFO CMAKE_CXX_FLAGS_RELWITHDEBINFO)
305-
if(${flag_var} MATCHES "-DNDEBUG")
306-
string(REGEX REPLACE "-DNDEBUG" "-D_DEBUG" ${flag_var} "${${flag_var}}")
307-
endif()
308-
endforeach()
309-
310302
check_c_compiler_flag(-fno-math-errno HAVE_FNO_MATH_ERRNO)
311303
if(HAVE_FNO_MATH_ERRNO)
312304
set(C_FLAGS ${C_FLAGS} -fno-math-errno)

0 commit comments

Comments
 (0)