mirror of https://github.com/CGAL/cgal
fix indentation and remove GMP_LIBRARIES_DIR
This commit is contained in:
parent
9a4d495567
commit
e5bf52d9c6
|
|
@ -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()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue