Skip to content

Commit b71e67a

Browse files
committed
COMP: allow building default configuration in ITK 4.13
1 parent 7d32ddf commit b71e67a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ include_directories(${CMAKE_BINARY_DIR})
4747
if(NOT ITK_SOURCE_DIR)
4848
include(ITKModuleExternal)
4949
else()
50+
set(ITK_DIR ${CMAKE_BINARY_DIR})
5051
itk_module_impl()
5152
endif()
5253
add_subdirectory(examples)

src/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# An option to allow building against ITK before 2018-02-20 when itkBuildInformation.h was not available
2-
option(ITK_HAS_INFORMATION_H "If itk::BuildInformation::GetInstance is available (after 2018-02-20)" ON)
2+
if (ITK_VERSION_MAJOR LESS 5)
3+
set(HAS_INFO OFF)
4+
else()
5+
set(HAS_INFO ON)
6+
endif()
7+
option(ITK_HAS_INFORMATION_H "If itk::BuildInformation::GetInstance is available (after 2018-02-20)" ${HAS_INFO})
38

49
include(${CMAKE_CURRENT_LIST_DIR}/../CMake/GetGitRevisionDescription.cmake)
510
get_git_head_revision(GIT_CONFIG_REFSPEC GIT_CONFIG_SHA1)

0 commit comments

Comments
 (0)