From 7a7c6398b3d6fb5ecec58470db388c4b7ab2034f Mon Sep 17 00:00:00 2001 From: David Herberth Date: Tue, 26 Dec 2023 19:30:49 +0100 Subject: [PATCH] cmake: adds note that paths should/must be absolute closes: #393 --- cmake/CMakeLists.txt | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index e439fd49..bbeaf021 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -43,8 +43,18 @@ cmake_minimum_required(VERSION 3.12) project(glad C) -set(GLAD_CMAKE_DIR "${CMAKE_CURRENT_LIST_DIR}" CACHE STRING "Directory containing glad generator CMakeLists.txt") -set(GLAD_SOURCES_DIR "${GLAD_CMAKE_DIR}/../" CACHE STRING "Directory containing glad sources (python modules), used as working directory") +set( + GLAD_CMAKE_DIR + "${CMAKE_CURRENT_LIST_DIR}" + CACHE STRING + "Directory containing glad generator CMakeLists.txt. Must be absolute." + ) +set( + GLAD_SOURCES_DIR + "${GLAD_CMAKE_DIR}/../" + CACHE STRING + "Directory containing glad sources (python modules), used as working directory. Must be absolute." + ) mark_as_advanced(GLAD_CMAKE_DIR) # Extract specification, profile and version from a string