summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2024-03-25 16:48:16 -0700
committerGitHub <noreply@github.com>2024-03-25 16:48:16 -0700
commita2ca5374023899c20d100dda86b8556b4188b952 (patch)
tree57156c08d3056a5b5292122e19454583d85ec0e8
parentc5dbc0a7b38786b4d81d4057088b29390dd320df (diff)
parent78a63e1954b4054f88f5f8e6b9f10d5a5aa6ad92 (diff)
downloadvolk-a2ca5374023899c20d100dda86b8556b4188b952.tar.gz
Merge pull request #180 from EllarBooher/cmake-set-patch
CMake: cache variables that shouldn't be booleans are option
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8249a8e..4ec9614 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -12,7 +12,7 @@ project(volk VERSION
# CMake 3.12 changes the default behaviour of option() to leave local variables
# unchanged if they exist (which we want), but we must work with older CMake versions.
if(NOT DEFINED VOLK_STATIC_DEFINES)
- option(VOLK_STATIC_DEFINES "Additional defines for building the volk static library, e.g. Vulkan platform defines" "")
+ set(VOLK_STATIC_DEFINES "" CACHE STRING "Additional defines for building the volk static library, e.g. Vulkan platform defines")
endif()
if(NOT DEFINED VOLK_PULL_IN_VULKAN)
option(VOLK_PULL_IN_VULKAN "Vulkan as a transitive dependency" ON)
@@ -24,7 +24,7 @@ if(NOT DEFINED VOLK_HEADERS_ONLY)
option(VOLK_HEADERS_ONLY "Add interface library only" OFF)
endif()
if(NOT DEFINED VULKAN_HEADERS_INSTALL_DIR)
- option(VULKAN_HEADERS_INSTALL_DIR "Where to get the Vulkan headers" "")
+ set(VULKAN_HEADERS_INSTALL_DIR "" CACHE PATH "Where to get the Vulkan headers")
endif()
# -----------------------------------------------------