Skip to content

Commit

Permalink
update compile definition name
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera committed Aug 22, 2023
1 parent b122ec4 commit a6eb205
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions greengrass_ipc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a6eb205

Please sign in to comment.