Skip to content

Commit

Permalink
minor fixing in the compialtion scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolabertoldi committed Oct 29, 2015
1 parent fd37292 commit 02d48dc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)" )

Expand Down
9 changes: 8 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 02d48dc

Please sign in to comment.