From 077fdbca534ed670ab8bbcdcbc17b828250b082c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jiri=20Dan=C4=9Bk?= Date: Wed, 19 Oct 2022 11:49:52 +0200 Subject: [PATCH] Add proton includes to hopefully fix Win build issue ``` [C:\dtests\node_data\clients\cpp\src\aac0_sender.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\stdlib.h(449) : see declaration of 'getenv' FormatUtil.cpp C:/dtests/node_data/clients/cpp/src/common\formatter/DictFormatter.h(11): fatal error C1083: Cannot open include file: 'proton/message.hpp': No such file or directory [C:\dtests\node_data\clients\cpp\src\aac0_sender.vcxproj] Generating Code... Done Building Project "C:\dtests\node_data\clients\cpp\src\aac0_sender.vcxproj" (rebuild target(s)) -- FAILED. Build FAILED. ``` --- src/common/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 6a4a41f..ca1f9ff 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -55,6 +55,9 @@ add_library(dtests-cpp-common Utils.cpp ) +target_include_directories(dtests-cpp-common + PRIVATE ${PROTON_INCLUDE_DIR} +) if (WIN32) target_link_libraries(dtests-cpp-common) else (WIN32)