Skip to content

Commit

Permalink
BUG: Define ITK_DYNAMIC_LOADING before ITK_WRAP_PYTHON
Browse files Browse the repository at this point in the history
This is follow-up to 499afa2

ITK_DYNAMIC_LOADING needs to be define before its value is checked relative to
the wrapping.

Change-Id: Ib8290f7a979bf36cc737e069b72e05bb0a3fcf94
  • Loading branch information
thewtex committed Dec 22, 2016
1 parent b2a2d31 commit 829dfe7
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions CMakeLists.txt
Expand Up @@ -137,6 +137,15 @@ if(CMAKE_C_COMPILER_ARG1)
variable CMAKE_C_COMPILER_LAUNCHER_FLAG should be used instead\
(CMake>=3.4 required)")
endif()

#-----------------------------------------------------------------------------
# ITK build configuration options.
option(BUILD_SHARED_LIBS "Build ITK with shared libraries." OFF)
set(ITK_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS})

option(ITK_DYNAMIC_LOADING "Support run-time loading of shared libraries" ON)
mark_as_advanced(ITK_DYNAMIC_LOADING)

#-----------------------------------------------------------------------------
# Wrapping options
option(ITK_WRAP_PYTHON "Build Python support" OFF)
Expand All @@ -159,14 +168,6 @@ else()
set(ITK_WRAPPING OFF CACHE INTERNAL "Build external languages support" FORCE)
endif()

#-----------------------------------------------------------------------------
# ITK build configuration options.
option(BUILD_SHARED_LIBS "Build ITK with shared libraries." OFF)
set(ITK_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS})

option(ITK_DYNAMIC_LOADING "Support run-time loading of shared libraries" ON)
mark_as_advanced(ITK_DYNAMIC_LOADING)

include(ITKSetStandardCompilerFlags)
#---------------------------------------------------------------
# run try compiles and tests for ITK
Expand Down

0 comments on commit 829dfe7

Please sign in to comment.