fix indentation and remove GMP_LIBRARIES_DIR

This commit is contained in:
Maxime Gimeno 2021-04-02 14:56:50 +02:00
parent 9a4d495567
commit e5bf52d9c6
1 changed files with 7 additions and 10 deletions

View File

@ -57,12 +57,9 @@ else()
set(GMP_LIBRARIES ${GMP_LIBRARY_RELEASE}) set(GMP_LIBRARIES ${GMP_LIBRARY_RELEASE})
endif() endif()
endif() endif()
if ( GMP_LIBRARIES )
get_filename_component(GMP_LIBRARIES_DIR ${GMP_LIBRARIES} PATH CACHE )
endif()
# Attempt to load a user-defined configuration for GMP if couldn't be found # 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 ) include( GMPConfig OPTIONAL )
endif() endif()