build(macos): configure C++ standard and ICU root (#5101)

This commit is contained in:
martona
2026-05-13 19:01:34 -04:00
committed by GitHub
parent 07099901cd
commit f9d1aca72e
7 changed files with 23 additions and 13 deletions

View File

@@ -3,6 +3,13 @@ cmake_minimum_required(VERSION 3.13)
project(test_sunshine)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if(NOT DEFINED CMAKE_CUDA_STANDARD)
set(CMAKE_CUDA_STANDARD 17)
set(CMAKE_CUDA_STANDARD_REQUIRED ON)
endif()
include_directories("${CMAKE_SOURCE_DIR}")
enable_testing()
@@ -151,8 +158,6 @@ endforeach()
# Ensure locale files are synchronized before building the test executable
add_dependencies(${PROJECT_NAME} sync_locale_files)
set_target_properties(${PROJECT_NAME} PROPERTIES CXX_STANDARD 23)
# Build the list of libraries to link
set(TEST_LINK_LIBRARIES
${SUNSHINE_EXTERNAL_LIBRARIES}