diff options
-rw-r--r-- | .appveyor.yml | 2 | ||||
-rw-r--r-- | CMakeLists.txt | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/.appveyor.yml b/.appveyor.yml index df5a323c..80b18be2 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -45,5 +45,5 @@ build_script: - type NUL >.devel - md build - cd build - - cmake -DCMAKE_PREFIX_PATH=c:\projects\libpcap\Win32\%SDK% -G"%GENERATOR%" .. + - cmake -DPCAP_ROOT=c:\projects\libpcap\Win32\%SDK% -G"%GENERATOR%" .. - msbuild /m /nologo /p:Configuration=Release tcpdump.sln diff --git a/CMakeLists.txt b/CMakeLists.txt index 5768db5e..3f9dd836 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,14 @@ cmake_minimum_required(VERSION 2.8.6) +# +# We want find_path() and find_library() to honor {packagename}_ROOT, +# as that appears to be the standard way to say "hey, look here for +# this package" from the command line. +# +if(POLICY CMP0074) + cmake_policy(SET CMP0074 NEW) +endif() + set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules) project(tcpdump) |