Skip to content

Commit 3cd3e92

Browse files
authored
Fix a build issue due to previous CMake change (#744)
The problem is that the Readline/zlib include paths were being included before our own include path (wrong import order). This caused a problem if the zlib include path was /usr/local/include, and that directory happened to unfortunately contain a pcre2.h file for an (older) version of PCRE2.
1 parent e62c0e0 commit 3cd3e92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ endif()
145145
# setting CMAKE_MODULE_PATH on the command line.
146146
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
147147

148-
include_directories(${PROJECT_BINARY_DIR}/src ${PROJECT_SOURCE_DIR}/src)
148+
include_directories(${PROJECT_BINARY_DIR}/interface ${PROJECT_BINARY_DIR}/src ${PROJECT_SOURCE_DIR}/src)
149149

150150
# external packages
151151
find_package(BZip2)

0 commit comments

Comments
 (0)