Backport some cmake hacks - This fixes Ninja generator.

This commit is contained in:
Gael Guennebaud 2016-07-01 09:46:57 +02:00
parent 87112908be
commit 38b9ff8b6f

View File

@ -14,13 +14,6 @@ add_dependencies(check buildtests)
# check whether /bin/bash exists # check whether /bin/bash exists
find_file(EIGEN_BIN_BASH_EXISTS "/bin/bash" PATHS "/" NO_DEFAULT_PATH) find_file(EIGEN_BIN_BASH_EXISTS "/bin/bash" PATHS "/" NO_DEFAULT_PATH)
# CMake/Ctest does not allow us to change the build command,
# so we have to workaround by directly editing the generated DartConfiguration.tcl file
# save CMAKE_MAKE_PROGRAM
set(CMAKE_MAKE_PROGRAM_SAVE ${CMAKE_MAKE_PROGRAM})
# and set a fake one
set(CMAKE_MAKE_PROGRAM "@EIGEN_MAKECOMMAND_PLACEHOLDER@")
# This call activates testing and generates the DartConfiguration.tcl # This call activates testing and generates the DartConfiguration.tcl
include(CTest) include(CTest)