Files
influxdb-cxx/0001-Add-trompeloeil-trompeloeil-target-if-not-available-.patch

29 lines
837 B
Diff

From 5b37509bb79ff164983cfd3991f49828136d613a Mon Sep 17 00:00:00 2001
From: offa <bm-dev@yandex.com>
Date: Thu, 5 Aug 2021 17:56:06 +0200
Subject: [PATCH] Add trompeloeil::trompeloeil target if not available (#94).
---
test/CMakeLists.txt | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index e9a3780..a9bdb13 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -2,6 +2,11 @@
find_package(Catch2 REQUIRED)
find_package(trompeloeil REQUIRED)
+if( NOT TARGET trompeloeil::trompeloeil )
+ add_library(trompeloeil::trompeloeil INTERFACE IMPORTED)
+ target_link_libraries(trompeloeil::trompeloeil INTERFACE trompeloeil)
+endif()
+
add_library(TestMain STATIC TestMain.cxx)
target_link_libraries(TestMain PUBLIC Catch2::Catch2 trompeloeil::trompeloeil)
--
2.31.1