mirror of https://github.com/CGAL/cgal
Fix the order of link of GMPXX when GMP is a static library.
This commit is contained in:
parent
310ce89b91
commit
4b7cc4a896
|
|
@ -68,10 +68,10 @@ function(use_CGAL_GMP_support target)
|
|||
$<BUILD_INTERFACE:${MPFR_INCLUDE_DIR}>
|
||||
$<INSTALL_INTERFACE:include>)
|
||||
endif()
|
||||
target_link_libraries(${target} ${keyword} ${MPFR_LIBRARIES} ${GMP_LIBRARIES})
|
||||
if(WITH_GMPXX OR CGAL_WITH_GMPXX)
|
||||
target_include_directories(${target} SYSTEM ${keyword} ${GMPXX_INCLUDE_DIR})
|
||||
target_link_libraries(${target} ${keyword} ${GMPXX_LIBRARIES})
|
||||
target_compile_definitions(${target} ${keyword} CGAL_USE_GMPXX=1)
|
||||
endif()
|
||||
target_link_libraries(${target} ${keyword} ${MPFR_LIBRARIES} ${GMP_LIBRARIES})
|
||||
endfunction()
|
||||
|
|
|
|||
Loading…
Reference in New Issue