From 482893e5e74033eb82b4dde725d313d60b81e3c1 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Wed, 2 Feb 2022 05:04:57 -0600 Subject: [PATCH] CMake: Clean up FindSYMENGINE.cmake --- cmake/modules/FindSYMENGINE.cmake | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/cmake/modules/FindSYMENGINE.cmake b/cmake/modules/FindSYMENGINE.cmake index 20b73fa50b..a662034885 100644 --- a/cmake/modules/FindSYMENGINE.cmake +++ b/cmake/modules/FindSYMENGINE.cmake @@ -113,14 +113,14 @@ _symengine_feature_check(LLVM "#define.*HAVE_SYMENGINE_LLVM") STRING(REGEX REPLACE "(lib64|lib)\\/cmake\\/symengine\\/\\.\\.\\/\\.\\.\\/\\.\\.\\/" "" - _symengine_include_dirs "${SYMENGINE_INCLUDE_DIRS}" + SYMENGINE_INCLUDE_DIRS "${SYMENGINE_INCLUDE_DIRS}" ) -REMOVE_DUPLICATES(_symengine_include_dirs) +REMOVE_DUPLICATES(SYMENGINE_INCLUDE_DIRS) # -# Get the full path for the SYMENGINE_LIBRARIES. Some of these libraries are +# Get the full path for the SYMENGINE_LIBRARIES. Some of these libraries are # CMake targets, so we can query them directly for this information. -# +# FOREACH(SYMENGINE_LIBRARY_NAME ${SYMENGINE_LIBRARIES}) IF (TARGET ${SYMENGINE_LIBRARY_NAME}) GET_PROPERTY(SYMENGINE_LIBRARY TARGET ${SYMENGINE_LIBRARY_NAME} PROPERTY LOCATION) @@ -130,11 +130,11 @@ FOREACH(SYMENGINE_LIBRARY_NAME ${SYMENGINE_LIBRARIES}) SET(_symengine_libraries ${_symengine_libraries} ${SYMENGINE_LIBRARY}) ENDFOREACH() - +SET(SYMENGINE_LIBRARIES ${_symengine_libraries}) DEAL_II_PACKAGE_HANDLE(SYMENGINE - LIBRARIES REQUIRED _symengine_libraries - INCLUDE_DIRS REQUIRED _symengine_include_dirs - USER_INCLUDE_DIRS REQUIRED _symengine_include_dirs + LIBRARIES REQUIRED SYMENGINE_LIBRARIES + INCLUDE_DIRS REQUIRED SYMENGINE_INCLUDE_DIRS + USER_INCLUDE_DIRS REQUIRED SYMENGINE_INCLUDE_DIRS CLEAR SYMENGINE_SETTINGS_H SYMENGINE_SKIP_DEPENDENCIES SymEngine_DIR ) -- 2.39.5