Skip to content

Commit

Permalink
Fix the order of link of GMPXX when GMP is a static library.
Browse files Browse the repository at this point in the history
  • Loading branch information
lrineau committed Mar 28, 2019
1 parent 310ce89 commit 4b7cc4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Installation/cmake/modules/CGAL_SetupGMP.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 4b7cc4a

Please sign in to comment.