mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-29 10:21:49 +08:00
35 lines
1.3 KiB
Diff
35 lines
1.3 KiB
Diff
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||
|
index 77ecf3e9e..b78ebcbec 100644
|
||
|
--- a/CMakeLists.txt
|
||
|
+++ b/CMakeLists.txt
|
||
|
@@ -287,14 +287,6 @@ if (USE_BOOST)
|
||
|
set (Boost_VERSION "${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}.${Boost_SUBMINOR_VERSION}")
|
||
|
endif ()
|
||
|
set (OPENTURNS_HAVE_BOOST TRUE)
|
||
|
- if (USE_MPFR)
|
||
|
- find_package (MPFR)
|
||
|
- if (MPFR_FOUND)
|
||
|
- set (OPENTURNS_HAVE_MPFR TRUE)
|
||
|
- list (APPEND OPENTURNS_PRIVATE_INCLUDE_DIRS ${MPFR_INCLUDE_DIRS})
|
||
|
- list (APPEND OPENTURNS_PRIVATE_LIBRARIES ${MPFR_LIBRARIES})
|
||
|
- endif ()
|
||
|
- endif ()
|
||
|
if (USE_MPC AND NOT Boost_VERSION VERSION_LESS 1.68)
|
||
|
find_package (MPC)
|
||
|
if (MPC_FOUND)
|
||
|
@@ -303,6 +295,14 @@ if (USE_BOOST)
|
||
|
list (APPEND OPENTURNS_PRIVATE_LIBRARIES ${MPC_LIBRARIES})
|
||
|
endif ()
|
||
|
endif ()
|
||
|
+ if (USE_MPFR)
|
||
|
+ find_package (MPFR)
|
||
|
+ if (MPFR_FOUND)
|
||
|
+ set (OPENTURNS_HAVE_MPFR TRUE)
|
||
|
+ list (APPEND OPENTURNS_PRIVATE_INCLUDE_DIRS ${MPFR_INCLUDE_DIRS})
|
||
|
+ list (APPEND OPENTURNS_PRIVATE_LIBRARIES ${MPFR_LIBRARIES})
|
||
|
+ endif ()
|
||
|
+ endif ()
|
||
|
if((USE_MPC OR USE_MPFR) AND NOT BUILD_SHARED_LIBS)
|
||
|
find_library(GMP_LIBRARY NAMES gmp)
|
||
|
list (APPEND OPENTURNS_PRIVATE_LIBRARIES ${GMP_LIBRARY})
|