Skip to content

Commit

Permalink
Separate Install paths and Macro paths
Browse files Browse the repository at this point in the history
  • Loading branch information
hummeltech committed Jun 20, 2024
1 parent 1309fdc commit 42f9e0f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,20 @@ set(TILE_LOAD_DIRECTORY "${HTTPD_SYSCONFDIR}")
set(TILE_LOAD_FILENAME "tile.load")
set(VERSION "${PROJECT_VERSION}")

# Ensure macro paths are absolute
if(NOT RENDERD_CONFIG MATCHES "^/")
set(RENDERD_CONFIG "/${RENDERD_CONFIG}")
endif()
if(NOT RENDERD_PIDFILE MATCHES "^/")
set(RENDERD_PIDFILE "/${RENDERD_PIDFILE}")
endif()
if(NOT RENDERD_SOCKET MATCHES "^/")
set(RENDERD_SOCKET "/${RENDERD_SOCKET}")
endif()
if(NOT RENDERD_TILE_DIR MATCHES "^/")
set(RENDERD_TILE_DIR "/${RENDERD_TILE_DIR}")
endif()

#-----------------------------------------------------------------------------
#
# Configure
Expand Down

0 comments on commit 42f9e0f

Please sign in to comment.