[segyio] 188/376: Enable C99 for python/C interop

Jørgen Kvalsvik jokva-guest at moszumanska.debian.org
Wed Sep 20 08:04:30 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 ed354a080c6a2f8b07c13108d1d95b7b4ca0a596
Author: Jørgen Kvalsvik <jokva at statoil.com>
Date:   Thu Feb 16 13:32:36 2017 +0100

    Enable C99 for python/C interop
---
 python/CMakeLists.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt
index 672c6c3..c797160 100644
--- a/python/CMakeLists.txt
+++ b/python/CMakeLists.txt
@@ -26,6 +26,10 @@ if (NOT PYTHONLIBS_FOUND)
     return()
 endif()
 
+if (NOT MSVC)
+    set(CMAKE_C_FLAGS "-std=c99 ${CMAKE_C_FLAGS}")
+endif()
+
 add_library(_segyio MODULE segyio/_segyio.c)
 target_include_directories(_segyio PRIVATE ${PYTHON_INCLUDE_DIRS})
 target_link_libraries(_segyio segyio ${PYTHON_LIBRARIES})

-- 
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