FLTK logo

Re: [fltk/fltk] CMake: Use imported targets for PkgConfig packages (PR #954)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [fltk/fltk] CMake: Use imported targets for PkgConfig packages (PR #954) Jordan Williams 04:54 Apr 22  
 

Commits 89b9575 and yet another fix for shared libs in e39c96f should fix all issues related to your Conan build.

@jwillikers Please test again and confirm that it works for you now.

This works! Thank you!!

@jwillikers I'd be all ears if you found a workable solution other (better) than mine in above mentioned commits.

I'll certainly let you know if I do!

The link libraries found by pkg-config are provided as absolute paths to the libs in the FLTK targets in FLTKConfig.cmake or in the related FLTK-Targets file. This seems to be useful (and intended by CMake) because you might otherwise find different shared libs on a system in the consumer's CMake environment.

CMake's pkg_check_modules seems to predate its support for imported targets, which is probably why it provides the libraries in a way where you can add them directly to target_link_libraries type calls without having to use an additional variable containing the link directories. CMake seems to provide find_dependency for this purpose, as it's meant to be used in CMake package files, but it's meant to easily work for find_package calls and not pkg_check_modules calls.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <fltk/fltk/pull/954/c2069203416@github.com>

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.