[irstlm] 08/10: minor fixing in the compialtion scripts

Giulio Paci giuliopaci-guest at moszumanska.debian.org
Tue May 17 07:46:55 UTC 2016


This is an automated email from the git hooks/post-receive script.

giuliopaci-guest pushed a commit to annotated tag staticLM
in repository irstlm.

commit 02d48dc11f013c5bf6adcd7dac2b091b863906a2
Author: Nicola Bertoldi <bertoldi at fbk.eu>
Date:   Thu Oct 29 09:07:06 2015 +0100

    minor fixing in the compialtion scripts
---
 CMakeLists.txt     | 1 +
 src/CMakeLists.txt | 9 ++++++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index e9e9790..aedaf2e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,6 +11,7 @@ SET(CMAKE_C_COMPILER "gcc" )
 SET(CMAKE_CXX_COMPILER "g++" )
 
 OPTION(CXX0 "Enable/Disable std=c++0" ON)
+OPTION(ASSERT "Enable/Disable MY_ASSERT_FLAG" ON)
 
 MATH(EXPR IRSTLM_INT_VERSION "(${IRSTLM_VERSION_MAJOR} * 10000) + (${IRSTLM_VERSION_MINOR} * 100) + (${IRSTLM_VERSION_PATCH} * 1)" )
 
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 6e2cd6c..cef6d31 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -6,12 +6,19 @@ ADD_DEFINITIONS("-D_LARGE_FILES")
 ADD_DEFINITIONS("-D_FILE_OFFSET_BITS=64")
 ADD_DEFINITIONS("-DMYCODESIZE=3")
 ADD_DEFINITIONS("-DDEBUG")
-##ADD_DEFINITIONS("-DTRACE_LEVEL=1")
 
 if (TRACE_LEVEL)
   ADD_DEFINITIONS("-DTRACE_LEVEL=${TRACE_LEVEL}")
 endif()
 
+if (OPTION)
+  ADD_DEFINITIONS("-DOPTION_${OPTION}")
+endif()
+
+if (SOLUTION)
+  ADD_DEFINITIONS("-DSOLUTION_${SOLUTION}")
+endif()
+
 if (CXX0)
   MESSAGE( STATUS "HAVE_CXX0=true; hence, variable HAVE_CXX0 is set" )
   SET(STD_FLAG "-std=c++0x")

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/irstlm.git



More information about the debian-science-commits mailing list