From f55e6f92c31188e39c1f228bf89f2a063f8f9fb8 Mon Sep 17 00:00:00 2001 From: Michael Zillgith Date: Mon, 15 Feb 2016 16:40:06 +0100 Subject: [PATCH] - fixed problem with winpcap detection in CMakeLists.txt files --- examples/CMakeLists.txt | 2 +- src/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 5bc892aa..d5be930d 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -23,7 +23,7 @@ add_subdirectory(mms_client_example3) add_subdirectory(mms_client_example4) IF(WIN32) -if(EXISTS "../third_party/winpcap/Lib/wpcap.lib") +if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../third_party/winpcap/Lib/wpcap.lib") message("Found winpcap -> compile examples for GOOSE and SV") add_subdirectory(server_example_goose) add_subdirectory(goose_subscriber) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4b4b8011..31a74e92 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -205,7 +205,7 @@ set (lib_bsd_SRCS IF(WIN32) -if(EXISTS "../third_party/winpcap/Lib/wpcap.lib") +if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../third_party/winpcap/Lib/wpcap.lib") message("Found winpcap -> can compile with GOOSE support") set(WITH_WPCAP 1) endif()