From fac517d571d3bc8877986cfcb691716d731512e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Tue, 24 Nov 2020 23:18:58 +0100 Subject: [PATCH] Fix conan package build --- 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):