Skip to content

Commit

Permalink
revise mini chem
Browse files Browse the repository at this point in the history
  • Loading branch information
chengcli committed Oct 14, 2024
1 parent c5a7f4a commit 6d82183
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions cmake/minichem.cmake
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
include(FetchContent)

set(FETCHCONTENT_QUIET FALSE)

option(MINICHEM "Build minichem" OFF)

if(MINICHEM)
set(patch_command
git apply ${CMAKE_CURRENT_SOURCE_DIR}/patches/35.mini_ch_i_dlsode.f90.patch)

FetchContent_Declare(
minichem
GIT_REPOSITORY https://github.com/chengcli/mini_chem
GIT_TAG main
PATCH_COMMAND ${patch_command}
UPDATE_DISCONNECTED TRUE)
FetchContent_MakeAvailable(minichem)

include_directories(${minichem_SOURCE_DIR})
endif()

set(PACKAGE_NAME minichem)
set(REPO_URL "https://github.com/chengcli/mini_chem")
set(REPO_TAG "3372a500f038f83228c9f8f944b3fb6b2dedc572")
add_package(${PACKAGE_NAME} ${REPO_URL} ${REPO_TAG} "${patch_commend}" OFF)

0 comments on commit 6d82183

Please sign in to comment.