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

@ -49,20 +49,17 @@ if( NOT GMP_in_cache )
get_property(IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) get_property(IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
if(IS_MULTI_CONFIG) if(IS_MULTI_CONFIG)
set(GMP_LIBRARIES debug ${GMP_LIBRARY_DEBUG} optimized ${GMP_LIBRARY_RELEASE}) set(GMP_LIBRARIES debug ${GMP_LIBRARY_DEBUG} optimized ${GMP_LIBRARY_RELEASE})
else()
if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
set(GMP_LIBRARIES ${GMP_LIBRARY_DEBUG})
else() else()
set(GMP_LIBRARIES ${GMP_LIBRARY_RELEASE}) if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
endif() set(GMP_LIBRARIES ${GMP_LIBRARY_DEBUG})
endif() else()
if ( GMP_LIBRARIES ) set(GMP_LIBRARIES ${GMP_LIBRARY_RELEASE})
get_filename_component(GMP_LIBRARIES_DIR ${GMP_LIBRARIES} PATH CACHE ) endif()
endif() 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()