mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
update wil to 0b2d6c2d822bb301e7558a14ee66d567c14f5dc7
This commit is contained in:
37
Externals/WIL/tests/cpplatest/CMakeLists.txt
vendored
37
Externals/WIL/tests/cpplatest/CMakeLists.txt
vendored
@ -1,33 +1,28 @@
|
||||
|
||||
add_executable(witest.cpplatest)
|
||||
|
||||
# Compilers often don't use the latest C++ standard as the default. Periodically update this value (possibly conditioned
|
||||
# on compiler) as new standards are ratified/support is available
|
||||
if (NOT MSVC)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
target_compile_features(witest.cpplatest PRIVATE cxx_std_20)
|
||||
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
# Clang is not compatible with the experimental coroutine header, so temporarily disable some headers until full
|
||||
# C++20 support is available
|
||||
set(COROUTINE_SOURCES)
|
||||
else()
|
||||
set(COROUTINE_SOURCES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../ComApartmentVariableTests.cpp)
|
||||
endif()
|
||||
|
||||
project(witest.cpplatest)
|
||||
add_executable(witest.cpplatest)
|
||||
|
||||
# Semi-arbitrary insiders SDK version selected that uses C++/WinRT "2.0"
|
||||
if ("${WIL_WINDOWS_SDK_VERSION}" VERSION_GREATER_EQUAL "10.0.18878.0")
|
||||
target_sources(witest.cpplatest PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../CppWinRT20Tests.cpp)
|
||||
endif()
|
||||
|
||||
target_sources(witest.cpplatest PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../main.cpp
|
||||
target_sources(witest.cpplatest PRIVATE
|
||||
${COMMON_SOURCES}
|
||||
${COROUTINE_SOURCES}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../CppWinRTTests.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
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../CppWinRT20Tests.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../StlTests.cpp
|
||||
${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