mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-22 09:39:34 +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
|
# This call activates testing and generates the DartConfiguration.tcl
|
||||||
include(CTest)
|
include(CTest)
|
||||||
|
|
||||||
|
set(EIGEN_TEST_BUILD_FLAGS " " CACHE STRING "Options passed to the build command of unit tests")
|
||||||
|
|
||||||
# overwrite default DartConfiguration.tcl
|
# overwrite default DartConfiguration.tcl
|
||||||
# The worarounds are different for each version of the MSVC IDE
|
# The worarounds are different for each version of the MSVC IDE
|
||||||
if(MSVC_IDE)
|
if(MSVC_IDE)
|
||||||
if(CMAKE_MAKE_PROGRAM_SAVE MATCHES "devenv") # devenv
|
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
|
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()
|
endif()
|
||||||
else()
|
else()
|
||||||
# for make and nmake
|
# 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()
|
endif()
|
||||||
|
|
||||||
# copy ctest properties, which currently
|
# 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)
|
get_filename_component(eigen_full_path_to_testing_lapack "./testing/" ABSOLUTE)
|
||||||
if(EXISTS ${eigen_full_path_to_testing_lapack})
|
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
|
# Get Python
|
||||||
find_package(PythonInterp)
|
find_package(PythonInterp)
|
||||||
message(STATUS "Looking for Python found - ${PYTHONINTERP_FOUND}")
|
message(STATUS "Looking for Python found - ${PYTHONINTERP_FOUND}")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user