aboutsummaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorJuan Ramos <[email protected]>2023-03-15 13:51:43 -0600
committerJuan Ramos <[email protected]>2023-03-15 13:55:17 -0600
commit65ad768d8603671fc1085fe115019e72a595ced8 (patch)
treef91f0366b75d2d4da826aa20d1e6c156dd604599 /CMakeLists.txt
parentd732b2de303ce505169011d438178191136bfb00 (diff)
downloadVulkan-Headers-65ad768d8603671fc1085fe115019e72a595ced8.tar.gz
Vulkan-Headers-65ad768d8603671fc1085fe115019e72a595ced8.zip
cmake: Minor CMake cleanupsdk-1.3.243.0sdk-1.3.243
- Fix project name to be less confusing - Better testing
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 2 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6f671eb..860acd8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -41,13 +41,11 @@ function(vlk_get_header_version)
endfunction()
vlk_get_header_version()
-project(Vulkan-Headers LANGUAGES C VERSION ${VK_VERSION_STRING})
-
-message(DEBUG "${PROJECT_NAME} = ${PROJECT_VERSION}")
+project(VULKAN_HEADERS LANGUAGES C VERSION ${VK_VERSION_STRING})
add_library(Vulkan-Headers INTERFACE)
-target_include_directories(Vulkan-Headers INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
add_library(Vulkan::Headers ALIAS Vulkan-Headers)
+target_include_directories(Vulkan-Headers INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
if (CMAKE_VERSION VERSION_LESS "3.21")
# https://cmake.org/cmake/help/latest/variable/PROJECT_IS_TOP_LEVEL.html