Please fill out the following information to help in answering your question, and also see tips for posting code snippets
Geant4 Version: 10.7.2
Operating System: MacOS 11.6
cmake version: 3.21.2
I am using an existing installation of Geant4, but I had to change the location of the expat library with EXPAT_INCLUDE_DIR and EXPAT_LIBRARY to point to the currently existing installations. Is there a way to avoid the two warnings I am getting each time I configure my project?
CMake Warning at /Users/mato/.julia/artifacts/db3da3f31301d4e88f11774fa1b6063dc4dd0dff/lib/Geant4-10.7.2/Geant4PackageCache.cmake:9 (message):
Value of 'EXPAT_INCLUDE_DIR' is already set and does not match value set at
Geant4 build-time
Call Stack (most recent call first):
/Users/mato/.julia/artifacts/db3da3f31301d4e88f11774fa1b6063dc4dd0dff/lib/Geant4-10.7.2/Geant4PackageCache.cmake:18 (geant4_set_and_check_package_variable)
/Users/mato/.julia/artifacts/db3da3f31301d4e88f11774fa1b6063dc4dd0dff/lib/Geant4-10.7.2/Geant4Config.cmake:253 (include)
CMakeLists.txt:15 (find_package)
CMake Warning at /Users/mato/.julia/artifacts/db3da3f31301d4e88f11774fa1b6063dc4dd0dff/lib/Geant4-10.7.2/Geant4PackageCache.cmake:9 (message):
Value of 'EXPAT_LIBRARY' is already set and does not match value set at
Geant4 build-time
Call Stack (most recent call first):
/Users/mato/.julia/artifacts/db3da3f31301d4e88f11774fa1b6063dc4dd0dff/lib/Geant4-10.7.2/Geant4PackageCache.cmake:19 (geant4_set_and_check_package_variable)
/Users/mato/.julia/artifacts/db3da3f31301d4e88f11774fa1b6063dc4dd0dff/lib/Geant4-10.7.2/Geant4Config.cmake:253 (include)
CMakeLists.txt:15 (find_package)