Skip to content

Commit

Permalink
Merge pull request #551 from starius/respect-user-cmake-module-path
Browse files Browse the repository at this point in the history
respect CMAKE_MODULE_PATH provided by user
  • Loading branch information
aginor committed Apr 10, 2016
2 parents f77b3d7 + 6e08864 commit 94fc73f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Expand Up @@ -18,7 +18,7 @@ endif(COMMAND cmake_policy)
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)

# use our own version of FindBoost.cmake and other Find* scripts
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")

#
# Options
Expand Down Expand Up @@ -706,7 +706,7 @@ install(FILES l10n-track DESTINATION ${DATADIR})
#

configure_file(
"${CMAKE_MODULE_PATH}/uninstall.cmake.in"
"${CMAKE_SOURCE_DIR}/cmake/uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/uninstall.cmake"
IMMEDIATE @ONLY
)
Expand Down
2 changes: 1 addition & 1 deletion doc/man/CMakeLists.txt
Expand Up @@ -23,7 +23,7 @@ if(ENABLE_POT_UPDATE_TARGET)
COMMAND ${CMAKE_COMMAND}
-DPROJECT_SOURCE_DIR="${PROJECT_SOURCE_DIR}"
-DMANPAGES="${ALL_MANPAGES}"
-P "${CMAKE_MODULE_PATH}/po4a-man.cmake"
-P "${CMAKE_SOURCE_DIR}/cmake/po4a-man.cmake"
DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/wesnoth.6
${CMAKE_CURRENT_SOURCE_DIR}/wesnothd.6
Expand Down
2 changes: 1 addition & 1 deletion doc/manual/CMakeLists.txt
Expand Up @@ -83,7 +83,7 @@ if(ENABLE_POT_UPDATE_TARGET)
COMMAND ${CMAKE_COMMAND}
-DSOURCE="manual.${LINGUA}.xml"
-DCMD="${CMD}"
-P "${CMAKE_MODULE_PATH}/po4a-manual.cmake"
-P "${CMAKE_SOURCE_DIR}/cmake/po4a-manual.cmake"
COMMAND ${CMAKE_COMMAND} -E remove manual.${LINGUA}.xml
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/manual.${LINGUA}.xml
COMMENT "[update-po4a-manual ${LINGUA}] Building ${LINGUA}.html."
Expand Down

0 comments on commit 94fc73f

Please sign in to comment.