mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-11-27 06:30:28 +08:00
Ease setting build options when running ctest -D
This commit is contained in:
parent
4f28ccdd0e
commit
0567cf96cc
@ -24,17 +24,19 @@ set(CMAKE_MAKE_PROGRAM "@EIGEN_MAKECOMMAND_PLACEHOLDER@")
|
||||
# This call activates testing and generates the DartConfiguration.tcl
|
||||
include(CTest)
|
||||
|
||||
set(EIGEN_TEST_BUILD_FLAGS " " CACHE STRING "Options passed to the build command of unit tests")
|
||||
|
||||
# overwrite default DartConfiguration.tcl
|
||||
# The worarounds are different for each version of the MSVC IDE
|
||||
if(MSVC_IDE)
|
||||
if(CMAKE_MAKE_PROGRAM_SAVE MATCHES "devenv") # devenv
|
||||
set(EIGEN_MAKECOMMAND_PLACEHOLDER "${CMAKE_MAKE_PROGRAM_SAVE} Eigen.sln /build \"Release\" /project buildtests \n# ")
|
||||
set(EIGEN_MAKECOMMAND_PLACEHOLDER "${CMAKE_MAKE_PROGRAM_SAVE} Eigen.sln /build \"Release\" /project buildtests ${EIGEN_TEST_BUILD_FLAGS} \n# ")
|
||||
else() # msbuild
|
||||
set(EIGEN_MAKECOMMAND_PLACEHOLDER "${CMAKE_MAKE_PROGRAM_SAVE} buildtests.vcxproj /p:Configuration=\${CTEST_CONFIGURATION_TYPE} \n# ")
|
||||
set(EIGEN_MAKECOMMAND_PLACEHOLDER "${CMAKE_MAKE_PROGRAM_SAVE} buildtests.vcxproj /p:Configuration=\${CTEST_CONFIGURATION_TYPE} ${EIGEN_TEST_BUILD_FLAGS}\n# ")
|
||||
endif()
|
||||
else()
|
||||
# for make and nmake
|
||||
set(EIGEN_MAKECOMMAND_PLACEHOLDER "${CMAKE_MAKE_PROGRAM_SAVE} buildtests")
|
||||
set(EIGEN_MAKECOMMAND_PLACEHOLDER "${CMAKE_MAKE_PROGRAM_SAVE} buildtests ${EIGEN_TEST_BUILD_FLAGS}")
|
||||
endif()
|
||||
|
||||
# copy ctest properties, which currently
|
||||
|
@ -108,9 +108,8 @@ install(TARGETS eigen_lapack eigen_lapack_static
|
||||
|
||||
get_filename_component(eigen_full_path_to_testing_lapack "./testing/" ABSOLUTE)
|
||||
if(EXISTS ${eigen_full_path_to_testing_lapack})
|
||||
#add_subdirectory(testing)
|
||||
|
||||
set(BUILD_SINGLE ON)
|
||||
# The following comes from lapack/TESTING/CMakeLists.txt
|
||||
# Get Python
|
||||
find_package(PythonInterp)
|
||||
message(STATUS "Looking for Python found - ${PYTHONINTERP_FOUND}")
|
||||
|
Loading…
Reference in New Issue
Block a user