mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 04:58:21 +00:00
Include headers in binary dir before other headers.
If e.g., optional dependencies are installed in the same prefix as a previous Zeek installation, the build would have previously found `zeek-config.h` from the external prefix instead of from the current build. With this patch we now include the current binary dir before any previously configured include directories (here in particular: optional dependencies). With that the correct `zeek-config.h` is found.
This commit is contained in:
parent
52f0b68d86
commit
83b36dfc54
1 changed files with 1 additions and 1 deletions
|
@ -554,7 +554,7 @@ endif ()
|
||||||
string(TOLOWER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_LOWER)
|
string(TOLOWER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_LOWER)
|
||||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/zeek-config.h.in
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/zeek-config.h.in
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/zeek-config.h)
|
${CMAKE_CURRENT_BINARY_DIR}/zeek-config.h)
|
||||||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
|
||||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/zeek-config.h DESTINATION include/zeek)
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/zeek-config.h DESTINATION include/zeek)
|
||||||
execute_process(COMMAND "${CMAKE_COMMAND}" -E create_symlink
|
execute_process(COMMAND "${CMAKE_COMMAND}" -E create_symlink
|
||||||
"."
|
"."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue