Skip to content

Commit

Permalink
cmake: adds note that paths should/must be absolute
Browse files Browse the repository at this point in the history
closes: #393
  • Loading branch information
Dav1dde committed Dec 26, 2023
1 parent eb747c5 commit 7a7c639
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7a7c639

Please sign in to comment.