Move CMAKE_MODULE_PATH to top-level CMakeLists.txt
There is no need to assign CMAKE_MODULE_PATH every time macros.cmake is included.
This commit is contained in:
parent
90f44af3b1
commit
14a19abcc6
2 changed files with 2 additions and 2 deletions
|
@ -37,6 +37,8 @@ option(SD_ASSUME_DATADIR "Assume default directory for speed-dreams-data")
|
|||
set(data_version 2.3.0)
|
||||
include(GNUInstallDirs)
|
||||
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_LIST_DIR}/cmake)
|
||||
|
||||
if(SD_ASSUME_DATADIR)
|
||||
set(SD_DATADIR ${CMAKE_INSTALL_DATADIR}/games/speed-dreams-2)
|
||||
set(SD_DATADIR_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/games/speed-dreams-2)
|
||||
|
|
|
@ -81,8 +81,6 @@ SET(SD_MANDIR ${CMAKE_INSTALL_MANDIR} CACHE PATH "Place where the manual pages s
|
|||
STRING(REGEX REPLACE "^(.*[^/])/*$" "\\1" SD_LOCALDIR_TMP ${SD_LOCALDIR})
|
||||
SET(SD_LOCALDIR ${SD_LOCALDIR_TMP})
|
||||
|
||||
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_LIST_DIR})
|
||||
|
||||
# Configuration options macros.
|
||||
INCLUDE(${CMAKE_CURRENT_LIST_DIR}/options.cmake)
|
||||
|
||||
|
|
Loading…
Reference in a new issue