You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/04/01 05:54:00 UTC

[jira] [Commented] (PROTON-2355) Build failure with -DPROACTOR=none

    [ https://issues.apache.org/jira/browse/PROTON-2355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17312878#comment-17312878 ] 

ASF GitHub Bot commented on PROTON-2355:
----------------------------------------

astitcher commented on a change in pull request #302:
URL: https://github.com/apache/qpid-proton/pull/302#discussion_r605392287



##########
File path: c/CMakeLists.txt
##########
@@ -464,7 +464,11 @@ set(qpid-proton-noncore-src
   ${qpid-proton-include-extra}
 )
 
-add_library (qpid-proton SHARED $<TARGET_OBJECTS:qpid-proton-core-objects> $<TARGET_OBJECTS:qpid-proton-platform-io-objects> $<TARGET_OBJECTS:qpid-proton-proactor-objects> ${qpid-proton-noncore-src})
+add_library (qpid-proton SHARED
+  $<TARGET_OBJECTS:qpid-proton-core-objects>
+  $<TARGET_OBJECTS:qpid-proton-platform-io-objects>
+  $<$<BOOL:${HAS_PROACTOR}>:$<TARGET_OBJECTS:qpid-proton-proactor-objects>>

Review comment:
       I suggest $<$<TARGET_EXISTS:qpid-proton-proactor-objects>:$<TARGET_OBJECTS:qpid-proton-proactor-objects>>
   which would be more future proof.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Build failure with -DPROACTOR=none
> ----------------------------------
>
>                 Key: PROTON-2355
>                 URL: https://issues.apache.org/jira/browse/PROTON-2355
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: build
>    Affects Versions: proton-c-0.33.0
>            Reporter: Fabrice Fontaine
>            Priority: Major
>             Fix For: proton-c-0.34.0
>
>         Attachments: 0001-Fix-build-with-DPROACTOR-none.patch
>
>
> Building with -DPROACTOR=none fails on: 
> {code:java}
> CMake Error at c/CMakeLists.txt:481 (add_library):
>  Error evaluating generator expression:
> $<TARGET_OBJECTS:qpid-proton-proactor-objects>
> Objects of target "qpid-proton-proactor-objects" referenced but no such
>  target exists. 
> {code}
> It should also be noted that libqpid-proton-cpp also assumes that a proactor is always available (e.g. pn_connection_wake is unconditionally used in ./cpp/src/connection.cpp).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org