26 lines
873 B
Diff
26 lines
873 B
Diff
From 76f238d0ebcfc186f5210b0807b6a83a5c17bd43 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Tiziano=20M=C3=BCller?= <tiziano.mueller@chem.uzh.ch>
|
|
Date: Wed, 24 Apr 2019 15:30:50 +0200
|
|
Subject: [PATCH 2/2] cmake: properly link Fortran lib against used libraries
|
|
|
|
---
|
|
src/CMakeLists.txt | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
|
index b927adef..a0d4aeb3 100644
|
|
--- a/src/CMakeLists.txt
|
|
+++ b/src/CMakeLists.txt
|
|
@@ -13,7 +13,7 @@ if(USE_CUDA)
|
|
endif()
|
|
if(CREATE_FORTRAN_BINDINGS)
|
|
add_library(sirius_f "sirius_api.cpp;sirius.f90")
|
|
- add_dependencies(sirius_f generate_version_hpp runtime_options_json_hpp)
|
|
+ SIRIUS_SETUP_TARGET(sirius_f)
|
|
INSTALL (TARGETS sirius_f ARCHIVE DESTINATION
|
|
${CMAKE_INSTALL_PREFIX}/lib/)
|
|
set_target_properties(sirius_f PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
|
--
|
|
2.16.4
|
|
|