Skip to content

Commit

Permalink
PROTON-2822: [Build] Correctly build/test without proactor
Browse files Browse the repository at this point in the history
  • Loading branch information
astitcher committed May 9, 2024
1 parent f5b4b17 commit 2406d43
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ set(qpid-proton-noncore-src
add_library (qpid-proton SHARED
$<TARGET_OBJECTS:qpid-proton-core-objects>
$<TARGET_OBJECTS:qpid-proton-platform-io-objects>
$<TARGET_OBJECTS:qpid-proton-proactor-objects>
$<$<TARGET_EXISTS:qpid-proton-proactor-objects>:$<TARGET_OBJECTS:qpid-proton-proactor-objects>>
${qpid-proton-noncore-src})
target_link_libraries (qpid-proton LINK_PRIVATE ${SSL_LIB} ${SASL_LIB} ${TIME_LIB} ${PLATFORM_LIBS} ${PROACTOR_LIBS})
set_target_properties (qpid-proton
Expand Down
5 changes: 5 additions & 0 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
# under the License.
#

# Proton cpp requires the proactor library so don't build if that's not present
if (NOT TARGET qpid-proton-proactor)
return()
endif()

include(CMakeDependentOption)
enable_language(CXX)

Expand Down

0 comments on commit 2406d43

Please sign in to comment.