From e5bf52d9c6fd56175aed95e4cc52996dbfb3e104 Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Fri, 2 Apr 2021 14:56:50 +0200 Subject: [PATCH] fix indentation and remove GMP_LIBRARIES_DIR --- Installation/cmake/modules/FindGMP.cmake | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/Installation/cmake/modules/FindGMP.cmake b/Installation/cmake/modules/FindGMP.cmake index 0f0a9d4560d..3a1d355d41f 100644 --- a/Installation/cmake/modules/FindGMP.cmake +++ b/Installation/cmake/modules/FindGMP.cmake @@ -49,20 +49,17 @@ if( NOT GMP_in_cache ) get_property(IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) if(IS_MULTI_CONFIG) - set(GMP_LIBRARIES debug ${GMP_LIBRARY_DEBUG} optimized ${GMP_LIBRARY_RELEASE}) -else() - if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") - set(GMP_LIBRARIES ${GMP_LIBRARY_DEBUG}) + set(GMP_LIBRARIES debug ${GMP_LIBRARY_DEBUG} optimized ${GMP_LIBRARY_RELEASE}) else() - set(GMP_LIBRARIES ${GMP_LIBRARY_RELEASE}) - endif() -endif() - if ( GMP_LIBRARIES ) - get_filename_component(GMP_LIBRARIES_DIR ${GMP_LIBRARIES} PATH CACHE ) + if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") + set(GMP_LIBRARIES ${GMP_LIBRARY_DEBUG}) + else() + set(GMP_LIBRARIES ${GMP_LIBRARY_RELEASE}) + endif() endif() # Attempt to load a user-defined configuration for GMP if couldn't be found - if ( NOT GMP_INCLUDE_DIR OR NOT GMP_LIBRARIES_DIR ) + if ( NOT GMP_INCLUDE_DIR OR NOT GMP_LIBRARIES) include( GMPConfig OPTIONAL ) endif()