Skip to content

Commit

Permalink
find_package to set min version
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnaf-tahmid-chowdhury committed Feb 21, 2024
1 parent 5f844bc commit 7bd408c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/docker_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ jobs:
11.1.2
]
double_down_version : [
off
v1.0.0,
v1.1.0,
]

name: Installing Dependencies, Building DAGMC and running tests
Expand Down
6 changes: 1 addition & 5 deletions cmake/DAGMC_macros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,7 @@ macro (dagmc_setup_options)
endif()

if (DOUBLE_DOWN)
find_package(DOUBLE_DOWN REQUIRED)
if (${DOUBLE_DOWN_VERSION} VERSION_LESS 1.1.0)
message(FATAL_ERROR "Discovered Double Down Version: ${DOUBLE_DOWN_VERSION}. \
Please update Double Down to version 1.1.0 or greater.")
endif()
find_package(DOUBLE_DOWN 1.1.0 REQUIRED)
endif()


Expand Down

0 comments on commit 7bd408c

Please sign in to comment.