Skip to content

Commit 1d9ac08

Browse files
Change order of include directories
Before this change, building libfqfft on a system that already has libfqfft installed could result in cmake using the installed headers instead of ones from the version being built.
1 parent b844c27 commit 1d9ac08

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ else()
7272
)
7373
endif()
7474

75+
include_directories(.)
76+
7577
# GMP
7678
find_path(GMP_INCLUDE_DIR NAMES gmp.h)
7779
find_library(GMP_LIBRARIES NAMES gmp libgmp)
@@ -101,6 +103,5 @@ add_custom_target(
101103
COMMAND polynomial_multiplication
102104
)
103105

104-
include_directories(.)
105106
add_subdirectory(libfqfft)
106107
add_subdirectory(tutorials)

0 commit comments

Comments
 (0)