Skip to content

Commit

Permalink
FileParse version flag introduced (for dependency checking).
Browse files Browse the repository at this point in the history
  • Loading branch information
vidanovic committed Oct 25, 2024
1 parent 4a9eb0d commit 992d5be
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,27 +37,18 @@ endif()

include(FetchContent)

if(NOT TARGET xmlParser)
FetchContent_Declare(
xmlParser
GIT_REPOSITORY https://github.com/LBNL-ETA/XMLParser.git
GIT_TAG "v1.0.1"
)

FetchContent_MakeAvailable(xmlParser)
endif()

if(NOT TARGET FileParse)
set(BUILD_FileParse_tests OFF CACHE BOOL "Build FileParse tests" FORCE)

FetchContent_Declare(
FileParse
GIT_REPOSITORY https://github.com/LBNL-ETA/FileParse.git
GIT_TAG "main"
)

FetchContent_MakeAvailable(FileParse)
endif()
# Test from FileParse should not be visible here
set(BUILD_FileParse_tests OFF CACHE BOOL "Build FileParse tests" FORCE)

# Keeps required verson of FileParse for this component. Needed for parents to check consistency of the packages.
set(BSDFXMLPARSER_FILEPARSE_VERSION "main")

FetchContent_Declare(
FileParse
GIT_REPOSITORY https://github.com/LBNL-ETA/FileParse.git
GIT_TAG ${BSDFXMLPARSER_FILEPARSE_VERSION}
)
FetchContent_MakeAvailable(FileParse)

# Set include directories for FileParse
set(FileParse_INCLUDE_DIRS "${fileparse_SOURCE_DIR}/include")
Expand Down

0 comments on commit 992d5be

Please sign in to comment.