From 3f204321ce8185110121fec479ea035d1f4e0d8d Mon Sep 17 00:00:00 2001 From: Jim Hague Date: Thu, 10 May 2018 04:30:58 +0100 Subject: [PATCH] Ensure local include directory comes before system. (#293) If building (say) libtins 4.0 on a system with 3.4 installed, you need the libtins include files to come from the repository include, not the system include directory. The OpenSSL and PCAP includes may be from the system include, so we need to ensure the libtins include is the first on the list - which means the last on the before list. --- src/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c5f2d26..af80586 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -8,10 +8,10 @@ IF(HAVE_PCAP_TIMESTAMP_PRECISION) ADD_DEFINITIONS("-DHAVE_PCAP_TIMESTAMP_PRECISION=1") ENDIF() -INCLUDE_DIRECTORIES( - ${LIBTINS_INCLUDE_DIR} +INCLUDE_DIRECTORIES(BEFORE ${OPENSSL_INCLUDE_DIR} ${PCAP_INCLUDE_DIR} + ${LIBTINS_INCLUDE_DIR} ) set(SOURCES