You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Andrew Stitcher (Jira)" <ji...@apache.org> on 2021/09/15 20:30:00 UTC

[jira] [Created] (PROTON-2433) The work for PROTON-2254 seems to have broken modern use of CMake

Andrew Stitcher created PROTON-2433:
---------------------------------------

             Summary: The work for PROTON-2254 seems to have broken modern use of CMake
                 Key: PROTON-2433
                 URL: https://issues.apache.org/jira/browse/PROTON-2433
             Project: Qpid Proton
          Issue Type: Bug
          Components: proton-c
    Affects Versions: proton-c-0.36.0
            Reporter: Andrew Stitcher
            Assignee: Jiri Daněk


I build Proton and install it in ~/Work/qpid-install
 ...
 > ninja install
 ...
 I create a simple CMakeFiles.txt:
{noformat}
cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
project(amqp-value-parser)
find_package(Proton 0.28 REQUIRED)
dd_executable (amqp-value-test main.c)
 target_link_libraries (amqp-value-test amqp-value Proton::core)
{noformat}

This now fails to correctly find the include files for the compile. I think because this work has removed this section and hasn't replaced it with anything else that does the same thing. 
{noformat}
# Add modular target in a way compatible with cmake 2.8.12
if (NOT TARGET Proton::core)
  add_library(Proton::core UNKNOWN IMPORTED)
  set_target_properties(Proton::core
    PROPERTIES
      IMPORTED_LOCATION "@LIBDIR@/@PROTONCORELIB@"
      IMPORTED_LOCATION_DEBUG "@LIBDIR@/@PROTONCORELIBDEBUG@"
      INTERFACE_INCLUDE_DIRECTORIES "${Proton_Core_INCLUDE_DIRS}")
endif()
{noformat}

As the original work was only an improvement  we either need to fix this very soon or revert the original change.



--
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