cadabra2/Fix-linking-of-cadabra-module.patch

32 lines
900 B
Diff
Raw Normal View History

From 71a406f32a654d2037b1d011f44af3fce4d9b50d Mon Sep 17 00:00:00 2001
From: Kasper Peeters <kasper.peeters@phi-sci.com>
Date: Fri, 13 Dec 2019 18:02:59 +0000
Subject: [PATCH] Fix linking of cadabra module.
---
cmake/version.cmake | 2 +-
core/CMakeLists.txt | 7 +++++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt
index d9356682ba..8141820ab8 100644
--- a/core/CMakeLists.txt
+++ b/core/CMakeLists.txt
@@ -216,6 +218,7 @@ set(LOCAL_SRC_FILES
SympyCdb.cc
YoungTab.cc
modules/xperm_new.cc
+ ${CADABRA_LIBS_DIR}/whereami/whereami.c
${ALGORITHM_SRC_FILES}
${PROPERTY_SRC_FILES}
)
@@ -278,6 +279,8 @@ target_link_libraries(cadabra2 PRIVATE
${GMPXX_LIBRARIES}
${GMP_LIBRARIES}
${Boost_LIBRARIES}
+ ${PYTHON_LIBRARIES}
+ ${GLIBMM3_LIBRARIES}
)
if(ENABLE_SYSTEM_JSONCPP)
target_link_libraries(cadabra2 PRIVATE