Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions cmake/GrackleConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,14 @@ endmacro()
# STEP 0: PREAMBLE
# ----------------

# We use if(...IN_LIST...), make sure it is available
# this file uses `if(...IN_LIST...)`, which was introduced in CMake 3.3
# -> important: the `cmake_minimum_required` command is not the right tool for
# enforcing this (e.g. calling `cmake_minimum_required(VERSION 3.3)` will
# call versions of CMake with version >= 4.0 to abort
if(CMAKE_VERSION VERSION_LESS 3.3)
_FIND_GRACKLE_FAIL("Grackle requires CMake 3.3 or later")
endif()

cmake_minimum_required(VERSION 3.3)

# store options directly taken from the build
set(_GRACKLEBUILD_USE_DOUBLE @GRACKLE_USE_DOUBLE@)
set(_GRACKLEBUILD_USE_OPENMP @GRACKLE_USE_OPENMP@)
Expand Down