Skip to content

Commit

Permalink
Merge pull request #331 from xcompact3d/mathrack-dev-debg
Browse files Browse the repository at this point in the history
Use DEBG only for dev builds
  • Loading branch information
rfj82982 authored Jan 14, 2025
2 parents e174c5c + 87988ff commit a7c19a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/X3D_Compilers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ message(STATUS "Fortran compiler version ${CMAKE_Fortran_COMPILER_VERSION}")

set(CMAKE_Fortran_PREPROCESS ON)
if (CMAKE_BUILD_TYPE MATCHES "DEBUG")
add_definitions("-DDEBUG -DDEBG")
add_definitions("-DDEBUG")
endif (CMAKE_BUILD_TYPE MATCHES "DEBUG")

if (CMAKE_BUILD_TYPE MATCHES "DEV")
message(FATAL_ERROR "The code is not ready for DEV builds")
add_definitions("-DDEBUG -DDEBG")
endif (CMAKE_BUILD_TYPE MATCHES "DEV")

if (ENABLE_INPLACE)
Expand Down

0 comments on commit a7c19a5

Please sign in to comment.