Commit 6d11cc2 1 parent 502fc90 commit 6d11cc2 Copy full SHA for 6d11cc2
File tree 1 file changed +15
-11
lines changed
1 file changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,11 @@ set(CMAKE_MODULE_PATH
18
18
if (WIN32 )
19
19
set (MPIR_LIBRARY_DIR "${CMAKE_CURRENT_SOURCE_DIR} /../mpir_gc_x64" )
20
20
set (MPIR_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR} /../mpir_gc_x64" )
21
- include_directories (${MPIR_INCLUDE_DIR} )
21
+ include_directories (
22
+ ${INCLUDE_DIRECTORIES}
23
+ ${CMAKE_CURRENT_SOURCE_DIR}
24
+ ${MPIR_INCLUDE_DIR}
25
+ )
22
26
find_library (MPIR_LIBRARY NAMES mpir PATHS ${MPIR_LIBRARY_DIR} NO_DEFAULT_PATH)
23
27
if (MPIR_LIBRARY)
24
28
message (STATUS "MPIR library found at ${MPIR_LIBRARY} " )
@@ -28,18 +32,18 @@ if(WIN32)
28
32
endif ()
29
33
30
34
list (APPEND CMAKE_PREFIX_PATH "${CMAKE_CURRENT_SOURCE_DIR} /../mpir_gc_x64" )
35
+ else ()
36
+ find_package (GMP REQUIRED)
37
+ find_package (GMPXX REQUIRED)
38
+
39
+ include_directories (
40
+ ${INCLUDE_DIRECTORIES}
41
+ ${CMAKE_CURRENT_SOURCE_DIR}
42
+ ${GMP_INCLUDE_DIR}
43
+ ${GMPXX_INCLUDE_DIR}
44
+ )
31
45
endif ()
32
46
33
- find_package (GMP REQUIRED)
34
- find_package (GMPXX REQUIRED)
35
-
36
- include_directories (
37
- ${INCLUDE_DIRECTORIES}
38
- ${CMAKE_CURRENT_SOURCE_DIR}
39
- ${GMP_INCLUDE_DIR}
40
- ${GMPXX_INCLUDE_DIR}
41
- )
42
-
43
47
set (CMAKE_CXX_FLAGS "-std=c++1z" )
44
48
45
49
# CMake 3.14+
You can’t perform that action at this time.
0 commit comments