mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-29 18:07:16 +02:00
build: linear_algebra test disables as the latest version of the LA lib is broken
This commit is contained in:
@ -27,6 +27,9 @@ list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
|
|||||||
|
|
||||||
set(projectPrefix UNITS_)
|
set(projectPrefix UNITS_)
|
||||||
|
|
||||||
|
option(${projectPrefix}BUILD_LA "Build code depending on the linear algebra library" ON)
|
||||||
|
message(STATUS "${projectPrefix}BUILD_LA: ${${projectPrefix}BUILD_LA}")
|
||||||
|
|
||||||
# make sure that the file is being used as an entry point
|
# make sure that the file is being used as an entry point
|
||||||
include(modern_project_structure)
|
include(modern_project_structure)
|
||||||
ensure_entry_point()
|
ensure_entry_point()
|
||||||
|
@ -80,7 +80,7 @@ class MPUnitsConan(ConanFile):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def _skip_la(self):
|
def _skip_la(self):
|
||||||
return bool(self.conf.get("user.build:skip_la", default=False))
|
return bool(self.conf.get("user.build:skip_la", default=True))
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def _skip_docs(self):
|
def _skip_docs(self):
|
||||||
|
@ -23,12 +23,9 @@
|
|||||||
cmake_minimum_required(VERSION 3.2)
|
cmake_minimum_required(VERSION 3.2)
|
||||||
|
|
||||||
find_package(Catch2 3 CONFIG REQUIRED)
|
find_package(Catch2 3 CONFIG REQUIRED)
|
||||||
find_package(wg21_linear_algebra CONFIG REQUIRED)
|
|
||||||
|
|
||||||
add_executable(unit_tests_runtime distribution_test.cpp fmt_test.cpp linear_algebra_test.cpp math_test.cpp)
|
add_executable(unit_tests_runtime distribution_test.cpp fmt_test.cpp math_test.cpp)
|
||||||
target_link_libraries(
|
target_link_libraries(unit_tests_runtime PRIVATE mp-units::mp-units Catch2::Catch2WithMain)
|
||||||
unit_tests_runtime PRIVATE mp-units::mp-units Catch2::Catch2WithMain wg21_linear_algebra::wg21_linear_algebra
|
|
||||||
)
|
|
||||||
|
|
||||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
||||||
target_compile_options(
|
target_compile_options(
|
||||||
|
Reference in New Issue
Block a user