Warning, /geant4/cmake/Modules/G4EXPATShim.cmake is written in an unsupported language. File is not indexed.
0001 # - G4EXPATShim
0002 #
0003 # Geant4's Geant4Config.cmake file aims to support CMake 3.8 and newer
0004 # The EXPAT dependency is located through CMake's builtin FindEXPAT
0005 # module and linked through the EXPAT::EXPAT imported target.
0006 # This target is however only available from CMake 3.10, so recreate
0007 # EXPAT::EXPAT target if it does not exist
0008 if(EXPAT_FOUND)
0009 if(NOT TARGET EXPAT::EXPAT)
0010 add_library(EXPAT::EXPAT UNKNOWN IMPORTED)
0011 set_target_properties(EXPAT::EXPAT PROPERTIES
0012 IMPORTED_LINK_INTERFACE_LANGUAGES "C"
0013 IMPORTED_LOCATION "${EXPAT_LIBRARY}"
0014 INTERFACE_INCLUDE_DIRECTORIES "${EXPAT_INCLUDE_DIRS}")
0015 endif()
0016 endif()