mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-03 04:14:27 +02:00
catch2 updated to 2.13.0
This commit is contained in:
@@ -87,7 +87,7 @@ class UnitsConan(ConanFile):
|
||||
|
||||
def build_requirements(self):
|
||||
if self._run_tests:
|
||||
self.build_requires("Catch2/2.11.0@catchorg/stable")
|
||||
self.build_requires("catch2/2.13.0")
|
||||
# TODO update doxygen to the latest version when available
|
||||
self.build_requires("doxygen_installer/1.8.17@bincrafters/stable")
|
||||
self.build_requires("linear_algebra/0.7.0@public-conan/testing")
|
||||
|
@@ -21,7 +21,7 @@
|
||||
# SOFTWARE.
|
||||
|
||||
# check if conan installed a test framework
|
||||
conan_check_testing(Catch2)
|
||||
conan_check_testing(catch2)
|
||||
|
||||
add_executable(unit_tests_runtime
|
||||
catch_main.cpp
|
||||
@@ -34,8 +34,8 @@ add_executable(unit_tests_runtime
|
||||
target_link_libraries(unit_tests_runtime
|
||||
PRIVATE
|
||||
mp::units
|
||||
$<IF:$<TARGET_EXISTS:CONAN_PKG::Catch2>,CONAN_PKG::Catch2,Catch2::Catch2>
|
||||
$<IF:$<TARGET_EXISTS:CONAN_PKG::catch2>,CONAN_PKG::catch2,Catch2::Catch2>
|
||||
)
|
||||
|
||||
include(lib/cmake/Catch2/Catch)
|
||||
include(Catch)
|
||||
catch_discover_tests(unit_tests_runtime)
|
||||
|
Reference in New Issue
Block a user