Skip to content

Commit 3f20432

Browse files
banburybillmfontanini
authored andcommitted
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.
1 parent 63603b8 commit 3f20432

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ IF(HAVE_PCAP_TIMESTAMP_PRECISION)
88
ADD_DEFINITIONS("-DHAVE_PCAP_TIMESTAMP_PRECISION=1")
99
ENDIF()
1010

11-
INCLUDE_DIRECTORIES(
12-
${LIBTINS_INCLUDE_DIR}
11+
INCLUDE_DIRECTORIES(BEFORE
1312
${OPENSSL_INCLUDE_DIR}
1413
${PCAP_INCLUDE_DIR}
14+
${LIBTINS_INCLUDE_DIR}
1515
)
1616

1717
set(SOURCES

0 commit comments

Comments
 (0)