Skip to content

Commit

Permalink
Fix install logic
Browse files Browse the repository at this point in the history
  • Loading branch information
gdevenyi committed Oct 10, 2019
1 parent d073c62 commit b2c828f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ANTS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ install(PROGRAMS Scripts/ANTSpexec.sh
COMPONENT SCRIPTS
)

if(BUILD_SHARED_LIBS AND NOT (USE_SYSTEM_ITK AND USE_SYSTEM_VTK))
#Only install ITK/VTK libraries if shared build and superbuild is used
if(BUILD_SHARED_LIBS AND ((NOT USE_SYSTEM_ITK) OR ((NOT USE_SYSTEM_VTK) AND USE_VTK)))
install(DIRECTORY ${CMAKE_BINARY_DIR}/../staging/lib/
DESTINATION lib)
endif()
2 changes: 2 additions & 0 deletions SuperBuild.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ list(APPEND ${CMAKE_PROJECT_NAME}_SUPERBUILD_EP_VARS
CMAKE_C_COMPILER_LAUNCHER:STRING
CMAKE_CXX_COMPILER_LAUNCHER:STRING
CMAKE_CUDA_COMPILER_LAUNCHER:STRING
USE_SYSTEM_ITK:BOOL
USE_SYSTEM_VTK:BOOL
)

_expand_external_project_vars()
Expand Down

0 comments on commit b2c828f

Please sign in to comment.