Commit eda3d5cb authored by Shayan Doust's avatar Shayan Doust
Browse files

Attempt to fix compilation issue within pbuilder / sid

parent adf89c25
Loading
Loading
Loading
Loading
+17 −4
Original line number Diff line number Diff line
@@ -6,8 +6,8 @@ Last-Update: 2019-09-09

Index: simka/CMakeLists.txt
===================================================================
--- simka.orig/CMakeLists.txt	2019-09-11 23:17:36.800233418 +0100
+++ simka/CMakeLists.txt	2019-09-11 23:17:59.436191116 +0100
--- simka.orig/CMakeLists.txt	2019-09-16 14:56:48.756951860 +0100
+++ simka/CMakeLists.txt	2019-09-16 14:57:02.785070784 +0100
@@ -42,7 +42,10 @@
  SET (GATB_CORE_EXCLUDE_EXAMPLES  1)
 
@@ -20,7 +20,20 @@ Index: simka/CMakeLists.txt
 
 ################################################################################
 # TOOL
@@ -62,8 +65,10 @@
@@ -53,17 +56,22 @@
 
 # we add a new compilation variable
 if (PRINTALL)
-SET( CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS} -DPRINTALL" )
+	#SET( CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS} -DPRINTALL -wno-error" )
 endif()
 
+unset(CMAKE_CXX_FLAGS)
+set(CMAKE_CXX_FLAGS "-Wno-error -O2 -g -Wunused-result")
+
 # we give the headers directories from :
 #       - from project source
 #       - from GATB-CORE source
 #       - from simka source
 include_directories (include ${gatb-core-includes} ${PROJECT_SOURCE_DIR}/src/core ${PROJECT_SOURCE_DIR}/src/minikc ${PROJECT_SOURCE_DIR}/src)
 
@@ -32,7 +45,7 @@ Index: simka/CMakeLists.txt
     configure_file (
         ${PROJECT_SOURCE_DIR}/src/core/SimkaAlgorithmTemplate.cpp.in
         ${PROJECT_BINARY_DIR}/src/core/template/SimkaAlgorithmTemplate_${KSIZE}.cpp
@@ -78,18 +83,18 @@
@@ -78,18 +86,18 @@
 set(PROJECT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/bin)
 
 add_executable        (simka  src/SimkaPotara.cpp ${ProjectFiles})