aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake/EigenConfigureTesting.cmake
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2014-06-06 11:06:44 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2014-06-06 11:06:44 +0200
commitc331ce6b8eab95b3dffa8f5202e3c270b065aab8 (patch)
treec1b055ec6f297acab7fd705633eac95ff150b3b5 /cmake/EigenConfigureTesting.cmake
parented37c44765b4401629281a1ea7ae223cddf91fde (diff)
Fix bug #738: use the "current" version of cmake project directories to ease the inclusion of Eigen within other projects.
Diffstat (limited to 'cmake/EigenConfigureTesting.cmake')
-rw-r--r--cmake/EigenConfigureTesting.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/EigenConfigureTesting.cmake b/cmake/EigenConfigureTesting.cmake
index 7844bf4d3..0b5de95bb 100644
--- a/cmake/EigenConfigureTesting.cmake
+++ b/cmake/EigenConfigureTesting.cmake
@@ -49,7 +49,7 @@ else()
set(EIGEN_MAKECOMMAND_PLACEHOLDER "${EIGEN_BUILD_COMMAND}")
endif()
-configure_file(${CMAKE_BINARY_DIR}/DartConfiguration.tcl ${CMAKE_BINARY_DIR}/DartConfiguration.tcl)
+configure_file(${CMAKE_CURRENT_BINARY_DIR}/DartConfiguration.tcl ${CMAKE_BINARY_DIR}/DartConfiguration.tcl)
# restore default CMAKE_MAKE_PROGRAM
set(CMAKE_MAKE_PROGRAM ${CMAKE_MAKE_PROGRAM_SAVE})
@@ -58,7 +58,7 @@ set(CMAKE_MAKE_PROGRAM ${CMAKE_MAKE_PROGRAM_SAVE})
unset(CMAKE_MAKE_PROGRAM_SAVE)
unset(EIGEN_MAKECOMMAND_PLACEHOLDER)
-configure_file(${CMAKE_SOURCE_DIR}/CTestCustom.cmake.in ${CMAKE_BINARY_DIR}/CTestCustom.cmake)
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/CTestCustom.cmake.in ${CMAKE_BINARY_DIR}/CTestCustom.cmake)
# some documentation of this function would be nice
ei_init_testing()