Specify the CMake module path using a path relative to the current source dir

This fixes a problem where the module path was not found
when the updater is incorporated into a larger CMake project

MD-19678 #time 10m
This commit is contained in:
Robert Knight 2013-09-03 16:39:23 +01:00
parent 83b2697b52
commit e74435e871

View file

@ -2,7 +2,7 @@ project(updater)
cmake_minimum_required(VERSION 2.6) cmake_minimum_required(VERSION 2.6)
enable_testing() enable_testing()
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules") set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
# If the SIGN_UPDATER option is enabled, the updater.exe # If the SIGN_UPDATER option is enabled, the updater.exe
# binary is digitally signed on Windows after it has been built. # binary is digitally signed on Windows after it has been built.