Skip to content

Commit

Permalink
If built without release optimizations, ULTRA will now note that in -h.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielOlson committed Sep 13, 2024
1 parent dea2324 commit b04dd43
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ if (NOT CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE STREQUAL "")
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "" FORCE)
endif()

if(NOT CMAKE_BUILD_TYPE STREQUAL "Release")
add_definitions(-DDEBUG_PRAGMA=1)
endif()

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
Expand Down
7 changes: 7 additions & 0 deletions src/cli.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
#define ULTRA_CLI_HPP

#define ULTRA_VERSION_STRING "1.0.2b"
#define DEBUG_STRING ""
#ifdef DEBUG_PRAGMA
#undef DEBUG_STRING
#define DEBUG_STRING " **WARNING** BUILT WITHOUT RELEASE OPTIMIZATION **WARNING** \n"
#endif



#include "../lib/CLI11.hpp"
Expand Down Expand Up @@ -109,6 +115,7 @@ struct Settings {
"(U)ltra (L)ocates (T)andemly (R)epetitive (A)reas\n"
" Daniel R. Olson and Travis J. Wheeler\n"
" Version " ULTRA_VERSION_STRING "\n"
DEBUG_STRING
" Use '--cite' for citation instructions\n"
"=================================================\n"};

Expand Down

0 comments on commit b04dd43

Please sign in to comment.