Skip to content

Commit

Permalink
cmake: Introduce QSCHEMATIC_DEPENDENCY_GPDS_DOWNLOAD_VERSION
Browse files Browse the repository at this point in the history
For the GPDS dependency, this allows to distinguish between the minimum verison required and the
version that will be fetched when QSCHEMATIC_DEPENDENCY_GPDS_DOWNLOAD is set to ON.
  • Loading branch information
Tectu committed Feb 17, 2024
1 parent 773ab1d commit 778d829
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ if (NOT QSCHEMATIC_BUILD_STATIC)
endif()

# Project requirements
set(QSCHEMATIC_DEPENDENCY_GPDS_MINIMUM_VERSION "1.8.1")
set(QSCHEMATIC_DEPENDENCY_GPDS_MINIMUM_VERSION "1.8.1")
set(QSCHEMATIC_DEPENDENCY_GPDS_DOWNLOAD_VERSION "1.8.3")

# Include the library
add_subdirectory(qschematic)
Expand Down
2 changes: 1 addition & 1 deletion qschematic/external.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if (QSCHEMATIC_DEPENDENCY_GPDS_DOWNLOAD)
FetchContent_Declare(
gpds
GIT_REPOSITORY https://github.com/simulton/gpds
GIT_TAG ${QSCHEMATIC_DEPENDENCY_GPDS_MINIMUM_VERSION}
GIT_TAG ${QSCHEMATIC_DEPENDENCY_GPDS_DOWNLOAD_VERSION}
)
FetchContent_GetProperties(gpds)
if(NOT gpds_POPULATED)
Expand Down

0 comments on commit 778d829

Please sign in to comment.