Skip to content

Commit

Permalink
created cmake option BUILD_UTILS
Browse files Browse the repository at this point in the history
  • Loading branch information
AlysonStahl-NOAA committed May 31, 2024
1 parent 6845a55 commit 56d9d80
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ option(LOGGING "Turn on internal logging messages. Only useful to g2 developers.
option(BUILD_4 "Build libg2_4.a" ON)
option(BUILD_D "Build libg2_d.a" ON)
option(BUILD_WITH_W3EMC "Build with NCEPLIBS-w3emc, enabling some GRIB1 functionality" ON)
option(BUILD_UTILS "Build grib utilities" ON)
option(G2C_COMPARE "Enable copygb2 tests using g2c_compare" OFF)

# Developers can use this option to specify a local directory which
Expand Down Expand Up @@ -101,8 +102,10 @@ endif()
# Build the code in the source directory.
add_subdirectory(src)

if (BUILD_WITH_W3EMC)
add_subdirectory(utils)
if (BUILD_UTILS)
if (BUILD_WITH_W3EMC)
add_subdirectory(utils)
endif()
endif()

# This will cause the memcheck to fail if memory problems are found.
Expand Down

0 comments on commit 56d9d80

Please sign in to comment.