Skip to content

Commit

Permalink
Replace Unicode characters with ON/OFF
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosbento committed Dec 10, 2024
1 parent 8401ff7 commit 23c94e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cmake/ecbuild_add_option.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ macro( ecbuild_add_option )
## Update the description of the feature summary
# Choose the correct tick
if (ENABLE_${_p_FEATURE})
set ( _tick "")
set ( _tick "ON")
else()
set ( _tick "")
set ( _tick "OFF")
endif()
set(_enabled "${ENABLE_${_p_FEATURE}}")
get_property( _enabled_features GLOBAL PROPERTY ENABLED_FEATURES )
Expand Down
6 changes: 3 additions & 3 deletions tests/project_summary/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ $SOURCE/clean.sh

mkdir -p $HERE/build_1
ecbuild -DENABLE_MYFEATURE=ON $SOURCE/test_project -B $HERE/build_1 | tee $HERE/build_1.log
EXPECT_ONE_OF $HERE/build_1.log "* MYFEATURE, proja(): '', projb(): ''"
EXPECT_ONE_OF $HERE/build_1.log "* MYFEATURE, proja(ON): '', projb(ON): ''"

# Options: -DENABLE_MYFEATURE=ON -DPROJB_ENABLE_MYFEATURE=OFF

mkdir -p $HERE/build_2
ecbuild -DENABLE_MYFEATURE=ON -DPROJB_ENABLE_MYFEATURE=OFF $SOURCE/test_project -B $HERE/build_2 | tee $HERE/build_2.log
EXPECT_ONE_OF $HERE/build_2.log "* MYFEATURE, proja(): '', projb(): ''"
EXPECT_ONE_OF $HERE/build_2.log "* MYFEATURE, proja(ON): '', projb(OFF): ''"

# Options: -DENABLE_MYFEATURE=OFF -DPROJB_ENABLE_MYFEATURE=ON

mkdir -p $HERE/build_3
ecbuild -DENABLE_MYFEATURE=OFF -DPROJB_ENABLE_MYFEATURE=ON $SOURCE/test_project -B $HERE/build_3 | tee $HERE/build_3.log
EXPECT_ONE_OF $HERE/build_3.log "* MYFEATURE, proja(): '', projb(): ''"
EXPECT_ONE_OF $HERE/build_3.log "* MYFEATURE, proja(OFF): '', projb(ON): ''"

0 comments on commit 23c94e7

Please sign in to comment.