Skip to content

Commit

Permalink
Update ExprTk to 0.0.3 on release branch
Browse files Browse the repository at this point in the history
Signed-off-by: Arash Partow <[email protected]>
  • Loading branch information
ArashPartow committed Jan 1, 2024
1 parent 28ca349 commit 0a217aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ endif()
# At the time of this writing, HEAD revision is commit d312ba91419c9cb12c8279fd3a19096d39dfcb5e
# available at https://github.com/ArashPartow/exprtk/archive/d312ba91419c9cb12c8279fd3a19096d39dfcb5e.zip
# Using latest revision to get all bug fixes.
set(EXPRTK_PACKAGE_URL "https://github.com/ArashPartow/exprtk/archive/master.zip")
set(EXPRTK_PACKAGE_PATH ${PACKAGE_DOWNLOAD_DIR}/exprtk.zip)
set(EXPRTK_TAG "0.0.3")
set(EXPRTK_PACKAGE_URL "https://github.com/ArashPartow/exprtk/archive/refs/tags/{EXPRTK_TAG}.zip")
set(EXPRTK_PACKAGE_PATH ${PACKAGE_DOWNLOAD_DIR}/exprtk-{EXPRTK_TAG}.zip)
if(NOT EXISTS ${EXPRTK_PACKAGE_PATH})
message(STATUS "Downloading exprtk package from ${EXPRTK_PACKAGE_URL}")
file(DOWNLOAD ${EXPRTK_PACKAGE_URL} ${EXPRTK_PACKAGE_PATH}
Expand All @@ -37,7 +38,7 @@ if(NOT EXISTS ${EXPRTK_PACKAGE_PATH})
WORKING_DIRECTORY ${PACKAGE_DOWNLOAD_DIR}
)
endif()
set(EXPRTK_HEADER_PATH ${PACKAGE_DOWNLOAD_DIR}/exprtk-master/exprtk.hpp)
set(EXPRTK_HEADER_PATH ${PACKAGE_DOWNLOAD_DIR}/exprtk-{EXPRTK_TAG}/exprtk.hpp)
if(EXISTS ${EXPRTK_HEADER_PATH})
message(STATUS "Found exprtk header file: ${EXPRTK_HEADER_PATH}")
else()
Expand Down
2 changes: 1 addition & 1 deletion src/libexprtk/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ target_include_directories(libexprtk
PUBLIC
$<INSTALL_INTERFACE:${SHELLANYTHING_INSTALL_INCLUDE_DIR}> # for clients using the installed library.
PRIVATE
${PACKAGE_DOWNLOAD_DIR}/exprtk-master
${PACKAGE_DOWNLOAD_DIR}/exprtk-{EXPRTK_TAG}
)

# Define files that will be part of the installation package.
Expand Down

0 comments on commit 0a217aa

Please sign in to comment.