Skip to content

Commit

Permalink
Merge pull request #36 from GEOS-ESM/feature/tclune/#17-remove-at-in-…
Browse files Browse the repository at this point in the history
…debug-vars

Fixes #17 - remove "@" in debug var names.
  • Loading branch information
mathomp4 authored Oct 1, 2019
2 parents c469c16 + 71e89c0 commit b512a04
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion esma_check_if_debug.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@

macro (esma_check_if_debug)

get_filename_component(this_dir ${CMAKE_CURRENT_SOURCE_DIR} NAME)
get_filename_component(this_dir_raw ${CMAKE_CURRENT_SOURCE_DIR} NAME)
string (SUBSTRING ${this_dir_raw} 0 1 leading_character)
if (leading_character STREQUAL "@")
string (SUBSTRING ${this_dir_raw} 1 -1 this_dir) # strip leading "@"
else ()
set (this_dir ${this_dir_raw})
endif()
option (DEBUG_${this_dir} "Activate debugging flags in this directory and its subdirs." OFF)

if (NOT (CMAKE_BUILD_TYPE MATCHES Debug))
Expand Down

0 comments on commit b512a04

Please sign in to comment.