Skip to content

Commit

Permalink
Attemptiong global variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
vidanovic committed Oct 25, 2024
1 parent e452b44 commit e991deb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,16 @@ include(FetchContent)
# 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" CACHE INTERNAL "Required FileParse version for BSDFXMLParser")
# Define the version in a single variable
set(FILEPARSE_BRANCH main)

# Set the global property once using the variable
set_property(GLOBAL PROPERTY BSDFXMLPARSER_FILEPARSE_VERSION ${FILEPARSE_BRANCH})

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

Expand Down

0 comments on commit e991deb

Please sign in to comment.