Skip to content

Commit

Permalink
Removal of the global variables in CMake.
Browse files Browse the repository at this point in the history
  • Loading branch information
vidanovic committed Oct 25, 2024
1 parent e991deb commit a7aef81
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,10 @@ include(FetchContent)
# Test from FileParse should not be visible here
set(BUILD_FileParse_tests OFF CACHE BOOL "Build FileParse tests" FORCE)

# 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 ${FILEPARSE_BRANCH}
GIT_TAG main
)
FetchContent_MakeAvailable(FileParse)

Expand Down

0 comments on commit a7aef81

Please sign in to comment.