Skip to content

Commit faf9d0f

Browse files
hjmjohnsonclaude
andcommitted
BUG: Fix unclosed if() block and duplicate project() in CMakeLists.txt
The if(NOT ITK_SOURCE_DIR) block at line 30 was missing its closing endif() before the option() and include_directories() calls, causing: CMake Error at CMakeLists.txt:30 (if): Flow control statements are not properly nested. Also removed the duplicate project(PerformanceBenchmarking) call (the full project() declaration with VERSION/DESCRIPTION is at line 16) and fixed the unclosed quote in the option() description string. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6262384 commit faf9d0f

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,9 @@ if(NOT ITK_SOURCE_DIR)
4848
# Set the possible values of build type for cmake-gui
4949
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo")
5050
endif()
51+
endif()
5152

52-
project(PerformanceBenchmarking)
53-
54-
option(ITK_USES_NUMBEROFTHREADS "If ITKv5 uses NumberOfThreads (not NumberOfWorkUnits" OFF)
55-
56-
set(PerformanceBenchmarking_LIBRARIES PerformanceBenchmarking)
53+
option(ITK_USES_NUMBEROFTHREADS "If ITKv5 uses NumberOfThreads (not NumberOfWorkUnits)" OFF)
5754

5855
include_directories(${CMAKE_BINARY_DIR})
5956
if(NOT ITK_SOURCE_DIR)

0 commit comments

Comments
 (0)