[segyio] 309/376: Explicitly link to libpython with MSVC
Jørgen Kvalsvik
jokva-guest at moszumanska.debian.org
Wed Sep 20 08:04:50 UTC 2017
This is an automated email from the git hooks/post-receive script.
jokva-guest pushed a commit to branch debian
in repository segyio.
commit b29af64a62047a001fc33116b96a2d7bca2bd6d6
Author: Jørgen Kvalsvik <jokva at statoil.com>
Date: Mon Jun 19 13:34:54 2017 +0200
Explicitly link to libpython with MSVC
---
python/CMakeLists.txt | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt
index b24a119..8c878df 100644
--- a/python/CMakeLists.txt
+++ b/python/CMakeLists.txt
@@ -34,7 +34,9 @@ target_link_libraries(_segyio PUBLIC segyio)
target_include_directories(_segyio PRIVATE ${PYTHON_INCLUDE_DIRS})
export(TARGETS _segyio segyio-shared segyio-static APPEND FILE segyio-config.cmake)
-if(NOT MSVC)
+if(MSVC)
+ target_link_libraries(_segyio PRIVATE ${PYTHON_LIBRARIES})
+else()
target_compile_options(_segyio PUBLIC "-std=c99")
endif ()
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/segyio.git
More information about the debian-science-commits
mailing list