mirror of
https://github.com/Ryujinx/libsoundio.git
synced 2025-01-03 14:55:31 +00:00
Merge pull request #76 from michaelmaltese/patch-3
Use command line switches that MSVC understands
This commit is contained in:
commit
06c075e1b2
|
@ -192,15 +192,19 @@ set(LIBSOUNDIO_LIBS
|
||||||
${CMAKE_THREAD_LIBS_INIT}
|
${CMAKE_THREAD_LIBS_INIT}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /WX /Wall")
|
||||||
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Werror -pedantic")
|
set(LIB_CFLAGS "/TP /W4")
|
||||||
|
set(EXAMPLE_CFLAGS "/W4")
|
||||||
|
set(TEST_CFLAGS "${LIB_CFLAGS}")
|
||||||
set(LIB_CFLAGS "-std=c11 -fvisibility=hidden -Wall -Werror=strict-prototypes -Werror=old-style-definition -Werror=missing-prototypes -D_REENTRANT -D_POSIX_C_SOURCE=200809L -Wno-missing-braces")
|
set(TEST_LDFLAGS " ")
|
||||||
set(EXAMPLE_CFLAGS "-std=c99 -Wall")
|
else()
|
||||||
set(TEST_CFLAGS "${LIB_CFLAGS} -fprofile-arcs -ftest-coverage")
|
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Werror -pedantic")
|
||||||
set(TEST_LDFLAGS "-fprofile-arcs -ftest-coverage")
|
set(LIB_CFLAGS "-std=c11 -fvisibility=hidden -Wall -Werror=strict-prototypes -Werror=old-style-definition -Werror=missing-prototypes -D_REENTRANT -D_POSIX_C_SOURCE=200809L -Wno-missing-braces")
|
||||||
|
set(EXAMPLE_CFLAGS "-std=c99 -Wall")
|
||||||
|
set(TEST_CFLAGS "${LIB_CFLAGS} -fprofile-arcs -ftest-coverage")
|
||||||
|
set(TEST_LDFLAGS "-fprofile-arcs -ftest-coverage")
|
||||||
|
endif()
|
||||||
|
|
||||||
configure_file(
|
configure_file(
|
||||||
"${CMAKE_SOURCE_DIR}/src/config.h.in"
|
"${CMAKE_SOURCE_DIR}/src/config.h.in"
|
||||||
|
|
Loading…
Reference in a new issue