mirror of
https://github.com/mfontanini/libtins
synced 2026-01-22 18:25:57 +01:00
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.
This commit is contained in:
committed by
Matias Fontanini
parent
63603b8ac8
commit
3f204321ce
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user