xo-cmake: + --enable/disable testing arg to reconfigure.in

This commit is contained in:
Roland Conybeare 2026-01-26 20:24:48 -05:00
commit 0522f546b9

View file

@ -3,6 +3,7 @@
# Generated by cmake - rerun to reconfigure
dry_run_flag=false
testing=@ENABLE_TESTING@
# Parse arguments
while [[ $# -gt 0 ]]; do
@ -10,6 +11,12 @@ while [[ $# -gt 0 ]]; do
-n|--dry-run)
dry_run_flag=true
;;
--enable-testing)
testing=1
;;
--disable-testing)
testing=0
;;
--)
break;
;;
@ -35,7 +42,7 @@ CMAKE_CMD=(
-DCMAKE_PREFIX_PATH=@CMAKE_PREFIX_PATH@
-DCMAKE_CXX_STANDARD=@CMAKE_CXX_STANDARD@
-DXO_CMAKE_CONFIG_EXECUTABLE=@XO_CMAKE_CONFIG_EXECUTABLE@
-DENABLE_TESTING=@ENABLE_TESTING@
-DENABLE_TESTING=$testing
-DXO_ENABLE_DOCS=@XO_ENABLE_DOCS@
-DXO_ENABLE_ASM=@XO_ENABLE_ASM@
-DXO_ENABLE_EXAMPLES=@XO_ENABLE_EXAMPLES@