[PATCH] build: Fix CMake 3.0 syntax in wrapper

  • From: Dimitri Staessens <dimitri@ouroboros.rocks>
  • To: ouroboros@xxxxxxxxxxxxx
  • Date: Sat, 6 Apr 2019 18:58:08 +0200

The wrapper contained a string that was split using a backslash. This
is only supported in CMake > 3.0. Removed the split so compilation
resumes with older versions of CMake.

Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
---
 include/ouroboros/wrap/CMakeLists.txt | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/ouroboros/wrap/CMakeLists.txt 
b/include/ouroboros/wrap/CMakeLists.txt
index b11f89d..bac035b 100644
--- a/include/ouroboros/wrap/CMakeLists.txt
+++ b/include/ouroboros/wrap/CMakeLists.txt
@@ -34,8 +34,7 @@ else ()
       # SWIG generates code for varargs with an unused parameter
       # SWIG generates code with unsafe strncpy()
       set_target_properties(ouroboros PROPERTIES
-        COMPILE_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wno-unused-parameter \
-          -Wno-stringop-truncation")
+        COMPILE_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wno-unused-parameter 
-Wno-stringop-truncation")
       swig_link_libraries(ouroboros ${PYTHON_LIBRARIES} ouroboros-common
         ouroboros-dev ouroboros-irm)
 
-- 
2.21.0


Other related posts:

  • » [PATCH] build: Fix CMake 3.0 syntax in wrapper - Dimitri Staessens