From a7aef8120d5d9c8ba577b4112c5d1cfe64377740 Mon Sep 17 00:00:00 2001 From: Simon Vidanovic Date: Fri, 25 Oct 2024 16:31:59 -0700 Subject: [PATCH] Removal of the global variables in CMake. --- CMakeLists.txt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e22b600..eb8cc54 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)