Skip to content

Commit

Permalink
make building minimizer optional
Browse files Browse the repository at this point in the history
  • Loading branch information
mhekkel committed Nov 7, 2023
1 parent 7490421 commit 33e60a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@ install(
COMPONENT Devel
)

if(BUILD_MINIMIZER)
set(FIND_DEPENDENCY_GSL "find_dependency(GSL REQUIRED)")
endif()

configure_package_config_file(${PROJECT_SOURCE_DIR}/cmake/pdb-redoConfig.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/pdb-redo/pdb-redoConfig.cmake
INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/pdb-redo
Expand Down
2 changes: 1 addition & 1 deletion cmake/pdb-redoConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ include(CMakeFindDependencyMacro)
find_dependency(newuoa 0.1.2 REQUIRED)
find_dependency(cifpp 5.0.4 REQUIRED)
find_dependency(CCP4 REQUIRED ccp4c clipper-core clipper-ccp4 clipper-contrib)
find_dependency(GSL REQUIRED)
@FIND_DEPENDENCY_GSL@

INCLUDE("${CMAKE_CURRENT_LIST_DIR}/pdb-redoTargets.cmake")

Expand Down

0 comments on commit 33e60a7

Please sign in to comment.