Merge pull request #1449 from jszakmeister/fix-cmake-module-path-usage

build: fix CMAKE_MODULE_PATH usage
This commit is contained in:
John Szakmeister 2014-11-10 20:54:52 -05:00
commit 85842b29eb
2 changed files with 8 additions and 8 deletions

View File

@ -2,7 +2,7 @@ cmake_minimum_required (VERSION 2.8.7)
project (NEOVIM) project (NEOVIM)
# Point CMake at any custom modules we may ship # Point CMake at any custom modules we may ship
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake") list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
# Prefer our bundled versions of dependencies. # Prefer our bundled versions of dependencies.
set(DEPS_DIR "${CMAKE_CURRENT_SOURCE_DIR}/.deps") set(DEPS_DIR "${CMAKE_CURRENT_SOURCE_DIR}/.deps")
@ -249,7 +249,7 @@ foreach(PROG ${RUNTIME_PROGRAMS})
install_helper(PROGRAMS ${PROG} DESTINATION share/nvim/${BASEDIR}) install_helper(PROGRAMS ${PROG} DESTINATION share/nvim/${BASEDIR})
endforeach() endforeach()
install(SCRIPT ${CMAKE_MODULE_PATH}/GenerateHelptags.cmake) install(SCRIPT ${PROJECT_SOURCE_DIR}/cmake/GenerateHelptags.cmake)
# Unfortunately, the below does not work under Ninja. Ninja doesn't use a # Unfortunately, the below does not work under Ninja. Ninja doesn't use a
# pseudo-tty when launching processes, because it can put many jobs in parallel # pseudo-tty when launching processes, because it can put many jobs in parallel
@ -297,7 +297,7 @@ if(BUSTED_PRG)
-DTEST_DIR=${CMAKE_CURRENT_SOURCE_DIR}/test -DTEST_DIR=${CMAKE_CURRENT_SOURCE_DIR}/test
-DBUILD_DIR=${CMAKE_BINARY_DIR} -DBUILD_DIR=${CMAKE_BINARY_DIR}
-DTEST_TYPE=unit -DTEST_TYPE=unit
-P ${CMAKE_MODULE_PATH}/RunTests.cmake -P ${PROJECT_SOURCE_DIR}/cmake/RunTests.cmake
DEPENDS nvim-test unittest-headers) DEPENDS nvim-test unittest-headers)
add_custom_target(functionaltest add_custom_target(functionaltest
@ -309,6 +309,6 @@ if(BUSTED_PRG)
-DTEST_DIR=${CMAKE_CURRENT_SOURCE_DIR}/test -DTEST_DIR=${CMAKE_CURRENT_SOURCE_DIR}/test
-DBUILD_DIR=${CMAKE_BINARY_DIR} -DBUILD_DIR=${CMAKE_BINARY_DIR}
-DTEST_TYPE=functional -DTEST_TYPE=functional
-P ${CMAKE_MODULE_PATH}/RunTests.cmake -P ${PROJECT_SOURCE_DIR}/cmake/RunTests.cmake
DEPENDS nvim) DEPENDS nvim)
endif() endif()

View File

@ -50,7 +50,7 @@ if(HAVE_WORKING_LIBINTL AND GETTEXT_FOUND AND XGETTEXT_PRG AND ICONV_PRG AND
-DPOT_FILE=${NVIM_POT} -DPOT_FILE=${NVIM_POT}
-DSEARCH_DIR=${CMAKE_CURRENT_SOURCE_DIR} -DSEARCH_DIR=${CMAKE_CURRENT_SOURCE_DIR}
"'-DSOURCES=${NEOVIM_RELATIVE_SOURCES}'" "'-DSOURCES=${NEOVIM_RELATIVE_SOURCES}'"
-P ${CMAKE_MODULE_PATH}/RunXgettext.cmake -P ${PROJECT_SOURCE_DIR}/cmake/RunXgettext.cmake
DEPENDS ${NEOVIM_SOURCES}) DEPENDS ${NEOVIM_SOURCES})
add_custom_target(potfile DEPENDS ${NVIM_POT}) add_custom_target(potfile DEPENDS ${NVIM_POT})
@ -68,7 +68,7 @@ if(HAVE_WORKING_LIBINTL AND GETTEXT_FOUND AND XGETTEXT_PRG AND ICONV_PRG AND
-DMSGFMT_PRG=${GETTEXT_MSGFMT_EXECUTABLE} -DMSGFMT_PRG=${GETTEXT_MSGFMT_EXECUTABLE}
-DMO_FILE=${moFile} -DMO_FILE=${moFile}
-DPO_FILE=${poFile} -DPO_FILE=${poFile}
-P ${CMAKE_MODULE_PATH}/RunMsgfmt.cmake -P ${PROJECT_SOURCE_DIR}/cmake/RunMsgfmt.cmake
DEPENDS ${poFile} ${NVIM_POT}) DEPENDS ${poFile} ${NVIM_POT})
install_helper( install_helper(
@ -107,7 +107,7 @@ if(HAVE_WORKING_LIBINTL AND GETTEXT_FOUND AND XGETTEXT_PRG AND ICONV_PRG AND
-DINPUT_ENC=${inputEnc} -DINPUT_ENC=${inputEnc}
-DOUTPUT_ENC=${outputEnc} -DOUTPUT_ENC=${outputEnc}
-DOUTPUT_CHARSET=${outputCharSet} -DOUTPUT_CHARSET=${outputCharSet}
-P ${CMAKE_MODULE_PATH}/ConvertPo.cmake -P ${PROJECT_SOURCE_DIR}/cmake/ConvertPo.cmake
COMMENT "Updating ${outputName}.po" COMMENT "Updating ${outputName}.po"
DEPENDS ${inputFile}) DEPENDS ${inputFile})
@ -190,7 +190,7 @@ if(HAVE_WORKING_LIBINTL AND GETTEXT_FOUND AND XGETTEXT_PRG AND ICONV_PRG AND
-DMSGMERGE_PRG=${GETTEXT_MSGMERGE_EXECUTABLE} -DMSGMERGE_PRG=${GETTEXT_MSGMERGE_EXECUTABLE}
-DPO_FILE=${poFile} -DPO_FILE=${poFile}
-DPOT_FILE=${NVIM_POT} -DPOT_FILE=${NVIM_POT}
-P ${CMAKE_MODULE_PATH}/RunMsgmerge.cmake -P ${PROJECT_SOURCE_DIR}/cmake/RunMsgmerge.cmake
COMMENT "Updating ${LANGUAGE}.po" COMMENT "Updating ${LANGUAGE}.po"
DEPENDS ${NVIM_POT}) DEPENDS ${NVIM_POT})