mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 10:09:36 -06:00
update wil to 0b2d6c2d822bb301e7558a14ee66d567c14f5dc7
This commit is contained in:
26
Externals/WIL/tests/noexcept/CMakeLists.txt
vendored
26
Externals/WIL/tests/noexcept/CMakeLists.txt
vendored
@ -1,27 +1,23 @@
|
||||
|
||||
project(witest.noexcept)
|
||||
add_executable(witest.noexcept)
|
||||
|
||||
# Turn off exceptions for this test
|
||||
replace_cxx_flag("/EHsc" "")
|
||||
add_definitions(-DCATCH_CONFIG_DISABLE_EXCEPTIONS)
|
||||
replace_cxx_flag("/EHsc" "/EHs-c-")
|
||||
target_compile_definitions(witest.noexcept PRIVATE
|
||||
-DCATCH_CONFIG_DISABLE_EXCEPTIONS
|
||||
)
|
||||
|
||||
# Catch2 has a no exceptions mode (configured above), however still includes STL headers which contain try...catch
|
||||
# statements... Thankfully MSVC just gives us a warning that we can disable
|
||||
append_cxx_flag("/wd4530")
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
|
||||
target_compile_options(witest.noexcept PRIVATE /wd4530)
|
||||
endif()
|
||||
|
||||
target_sources(witest.noexcept PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../main.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../CommonTests.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../ComTests.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../FileSystemTests.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../ResourceTests.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../ResultTests.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../Rpc.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../SafeCastTests.cpp
|
||||
target_sources(witest.noexcept PRIVATE
|
||||
${COMMON_SOURCES}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../TokenHelpersTests.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../UniqueWinRTEventTokenTests.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../WatcherTests.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../WinRTTests.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../WistdTests.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../wiTest.cpp)
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../WinVerifyTrustTest.cpp
|
||||
)
|
||||
|
Reference in New Issue
Block a user