summaryrefslogtreecommitdiffstats
path: root/Modules/FindVulkan.cmake
diff options
context:
space:
mode:
authorMACHIZAUD Andréa <andrea.machizaud@gmail.com>2022-05-13 21:12:29 (GMT)
committerMACHIZAUD Andréa <andrea.machizaud@gmail.com>2022-05-13 21:12:29 (GMT)
commit2f46b8d7237785fd3d4dac5085777f6279a6edb0 (patch)
tree0061c5f99e1a7e1ead001d21258a166f335b2dcd /Modules/FindVulkan.cmake
parent08a420af4a5083367550c222e7aa243ac2d1fc18 (diff)
downloadCMake-2f46b8d7237785fd3d4dac5085777f6279a6edb0.zip
CMake-2f46b8d7237785fd3d4dac5085777f6279a6edb0.tar.gz
CMake-2f46b8d7237785fd3d4dac5085777f6279a6edb0.tar.bz2
FindVulkan: Move `mark_as_advanced` right after `find_*` calls.
Diffstat (limited to 'Modules/FindVulkan.cmake')
-rw-r--r--Modules/FindVulkan.cmake9
1 files changed, 6 insertions, 3 deletions
diff --git a/Modules/FindVulkan.cmake b/Modules/FindVulkan.cmake
index 8d1634a..2b514fa 100644
--- a/Modules/FindVulkan.cmake
+++ b/Modules/FindVulkan.cmake
@@ -116,22 +116,28 @@ find_path(Vulkan_INCLUDE_DIR
HINTS
${_Vulkan_hint_include_search_paths}
)
+mark_as_advanced(Vulkan_INCLUDE_DIR)
find_library(Vulkan_LIBRARY
NAMES ${_Vulkan_library_name}
HINTS
${_Vulkan_hint_library_search_paths}
)
+mark_as_advanced(Vulkan_LIBRARY)
+
find_program(Vulkan_GLSLC_EXECUTABLE
NAMES glslc
HINTS
${_Vulkan_hint_executable_search_paths}
)
+mark_as_advanced(Vulkan_GLSLC_EXECUTABLE)
+
find_program(Vulkan_GLSLANG_VALIDATOR_EXECUTABLE
NAMES glslangValidator
HINTS
${_Vulkan_hint_executable_search_paths}
)
+mark_as_advanced(Vulkan_GLSLANG_VALIDATOR_EXECUTABLE)
set(Vulkan_LIBRARIES ${Vulkan_LIBRARY})
set(Vulkan_INCLUDE_DIRS ${Vulkan_INCLUDE_DIR})
@@ -164,9 +170,6 @@ find_package_handle_standard_args(Vulkan
Vulkan_VERSION
)
-mark_as_advanced(Vulkan_INCLUDE_DIR Vulkan_LIBRARY Vulkan_GLSLC_EXECUTABLE
- Vulkan_GLSLANG_VALIDATOR_EXECUTABLE)
-
if(Vulkan_FOUND AND NOT TARGET Vulkan::Vulkan)
add_library(Vulkan::Vulkan UNKNOWN IMPORTED)
set_target_properties(Vulkan::Vulkan PROPERTIES