aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2022-08-14 14:37:11 +0200
committerAndre Weissflog <floooh@gmail.com>2022-09-11 12:08:06 +0200
commit596a43b4f89aace5121ac358cc2367f8c82925c5 (patch)
tree8fbb23b1e17084fa88130bd010abcc989587deeb /tests
parent68365c64c7f5152baeb377067e98ac4ee0a83b91 (diff)
fix backend selection in tests/CMakeLists.txt
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index fe923218..b0a63f01 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -5,8 +5,10 @@ set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17) # needed for UWP
# SOKOL_GLCORE33, SOKOL_GLES2, SOKOL_GLES3, SOKOL_D3D11, SOKOL_METAL, SOKOL_WGPU, SOKOL_DUMMY
-option(SOKOL_BACKEND "Select 3D backend API" SOKOL_GLCORE33)
+set(SOKOL_BACKEND "SOKOL_GLCORE33" CACHE STRING "Select 3D backend API")
+set_property(CACHE SOKOL_BACKEND PROPERTY STRINGS SOKOL_GLCORE33 SOKOL_METAL SOKOL_D3D11)
option(USE_ARC "Enable/disable ARC" OFF)
+option(USE_ANALYZER "Enable/disable clang analyzer" OFF)
if (CMAKE_SYSTEM_NAME STREQUAL Emscripten)
set(EMSCRIPTEN 1)