Skip to content

Commit b48427e

Browse files
committed
mpir before forcing gmp
1 parent 8661100 commit b48427e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ set(CMAKE_MODULE_PATH
1515
${CMAKE_MODULE_PATH}
1616
)
1717

18-
find_package(GMP REQUIRED)
19-
find_package(GMPXX REQUIRED)
20-
2118
if(WIN32)
2219
set(MPIR_LIBRARY_DIR "${CMAKE_CURRENT_SOURCE_DIR}/mpir_gc_x64")
2320
set(MPIR_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/mpir_gc_x64")
@@ -31,6 +28,9 @@ if(WIN32)
3128
endif()
3229
endif()
3330

31+
find_package(GMP REQUIRED)
32+
find_package(GMPXX REQUIRED)
33+
3434
include_directories(
3535
${INCLUDE_DIRECTORIES}
3636
${CMAKE_CURRENT_SOURCE_DIR}

0 commit comments

Comments
 (0)