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):