Skip to content

Commit

Permalink
* Added DO_WARN (-DDO_WARN=1) option to CMake. This can help find/rem…
Browse files Browse the repository at this point in the history
…ove warnings.

--HG--
branch : trunk
  • Loading branch information
XTZGZoReX committed Mar 18, 2009
1 parent 5184783 commit ced575a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ OPTION(DO_SCRIPTS "With trinityscripts" 1)
OPTION(DO_CLI "With CLI" 1)
OPTION(DO_RA "With RA" 0)
OPTION(DO_DEBUG "Debug mode" 0)
OPTION(DO_WARN "Enable all compile warnings" 0)
OPTION(LARGE_CELL "Large cell size" 0)
OPTION(SHORT_SLEEP "Short sleep" 0)

Expand Down Expand Up @@ -104,6 +105,11 @@ message("* Debug mode ON")
add_definitions(-g -DTRINITY_DEBUG)
endif(DO_DEBUG)

if(DO_WARN)
message("* All warnings mode")
add_definitions(-Wall -Wfatal-errors -Wextra)
endif(DO_WARN)

if(LARGE_CELL)
message("* Large cell size")
add_definitions(-DLARGE_CELL)
Expand Down

0 comments on commit ced575a

Please sign in to comment.