From a6eb205ecde03a446c44a986c613db7c0a39a7c8 Mon Sep 17 00:00:00 2001 From: Zhihui Xia Date: Tue, 22 Aug 2023 16:32:12 -0700 Subject: [PATCH] update compile definition name --- greengrass_ipc/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/greengrass_ipc/CMakeLists.txt b/greengrass_ipc/CMakeLists.txt index 9405815c0..f3242e97a 100644 --- a/greengrass_ipc/CMakeLists.txt +++ b/greengrass_ipc/CMakeLists.txt @@ -70,8 +70,9 @@ if (CMAKE_BUILD_TYPE STREQUAL "" OR CMAKE_BUILD_TYPE MATCHES Debug) endif () if (BUILD_SHARED_LIBS) - target_compile_definitions(GreengrassIpc-cpp PUBLIC "-DAWS_GREENGRASSIPC_USE_IMPORT_EXPORT") - target_compile_definitions(GreengrassIpc-cpp PRIVATE "-DAWS_GREENGRASSIPC_EXPORTS") + # The compile definition should match the name in Exports.h + target_compile_definitions(GreengrassIpc-cpp PUBLIC "-DAWS_GREENGRASS_USE_IMPORT_EXPORT") + target_compile_definitions(GreengrassIpc-cpp PRIVATE "-DAWS_GREENGRASS_EXPORTS") install(TARGETS GreengrassIpc-cpp EXPORT GreengrassIpc-cpp-targets