catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Fix conan package build
- Commit
fac517d571d3bc8877986cfcb691716d731512e8- Author
- Martin Hořeňovský ·
- Parents
578f8b80068d
Changes
CMakeLists.txt | 2 +- conanfile.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7beae099..74a8b6c1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -104,7 +104,7 @@ endif() add_library(Catch2::Catch2 ALIAS Catch2) # Hacky support for compiling the impl into a static lib -add_library(Catch2WithMain src/catch_with_main.cpp) +add_library(Catch2WithMain ${CMAKE_CURRENT_LIST_DIR}/src/catch_with_main.cpp) target_link_libraries(Catch2WithMain PUBLIC Catch2) add_library(Catch2::Catch2WithMain ALIAS Catch2WithMain) diff --git a/conanfile.py b/conanfile.py index a904ce96..75a07b8c 100644 --- a/conanfile.py +++ b/conanfile.py @@ -10,7 +10,7 @@ class CatchConan(ConanFile): homepage = url license = "BSL-1.0" exports = "LICENSE.txt" - exports_sources = ("single_include/*", "CMakeLists.txt", "CMake/*", "contrib/*") + exports_sources = ("single_include/*", "CMakeLists.txt", "CMake/*", "contrib/*", "src/*") generators = "cmake" def package(self):