diff options
author | MACHIZAUD Andréa <andrea.machizaud@gmail.com> | 2022-05-22 21:09:00 (GMT) |
---|---|---|
committer | MACHIZAUD Andréa <andrea.machizaud@gmail.com> | 2022-05-22 21:09:00 (GMT) |
commit | 10a6bb16bb91738f3fad0828dd0accbaf1dc7424 (patch) | |
tree | c7f086d1205e291cfd1f758efd001ce508b3cea2 /Tests/FindVulkan/Test | |
parent | f7910af39be81d37540725a7676d370c787219a5 (diff) | |
download | CMake-10a6bb16bb91738f3fad0828dd0accbaf1dc7424.zip CMake-10a6bb16bb91738f3fad0828dd0accbaf1dc7424.tar.gz CMake-10a6bb16bb91738f3fad0828dd0accbaf1dc7424.tar.bz2 |
FindVulkan: Mark test target with `cxx_std_11` to avoid AppleClang warnings
Diffstat (limited to 'Tests/FindVulkan/Test')
-rw-r--r-- | Tests/FindVulkan/Test/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/FindVulkan/Test/CMakeLists.txt b/Tests/FindVulkan/Test/CMakeLists.txt index a492daa..e0c358f 100644 --- a/Tests/FindVulkan/Test/CMakeLists.txt +++ b/Tests/FindVulkan/Test/CMakeLists.txt @@ -11,20 +11,24 @@ find_package(Vulkan REQUIRED add_executable(test_tgt main.c) target_link_libraries(test_tgt Vulkan::Vulkan) +target_compile_features(test_tgt PRIVATE cxx_std_11) add_test(NAME test_tgt COMMAND test_tgt) add_executable(test_var main.c) target_include_directories(test_var PRIVATE ${Vulkan_INCLUDE_DIRS}) target_link_libraries(test_var PRIVATE ${Vulkan_LIBRARIES}) +target_compile_features(test_var PRIVATE cxx_std_11) add_test(NAME test_var COMMAND test_var) add_executable(test_tgt_dl main-dynamicVulkanLoading.cpp) target_link_libraries(test_tgt_dl Vulkan::Headers ${CMAKE_DL_LIBS}) +target_compile_features(test_tgt_dl PRIVATE cxx_std_11) add_test(NAME test_tgt_dl COMMAND test_tgt_dl) add_executable(test_var_dl main-dynamicVulkanLoading.cpp) target_include_directories(test_var_dl PRIVATE ${Vulkan_INCLUDE_DIRS}) target_link_libraries(test_var_dl ${CMAKE_DL_LIBS}) +target_compile_features(test_var_dl PRIVATE cxx_std_11) add_test(NAME test_var_dl COMMAND test_var_dl) add_executable(test_tgt_glslang main-glslang.cxx) |