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()