Hello.
I really can't understand what's going on. Trying to compile my project
for android, setting all kinds of things to get it done. I've tried 3.8.0,
3.7.2 and 3.6.2, with the same result. The below extracts are from running
3.6.2
Running with --debug and --trace, I see:
Hello.
I'm trying something I don't think is unreasonable.
I need to have an automatically generated file, let's say version.h
I have to run a custom command to generate it.
The contents of the file depend on some external forces, the custom command
m
ay or may not change it (but it will
On Wed, May 17, 2017 at 2:55 AM, Patrick Boettcher
> My reason of preferring pkg-config is
because it may have all
>> other kind of stuff in it that the maintainer thought is necessary.
>> I'd imagine some .pc files export a boatload of flags for all 3
>> stages, and I
Hello.
I'm trying to make CMake add to the linker RPATH automatically.
There is a library that is installed in a non-default location.
I'm discovering the library using PkgConfig (custom CMAKE_APPBUNDLE_PATH)
and add the library build options to the LINK_FLAGS (using set_property).
I then set
>> > If I understand things correctly, pkg-config does not return the
>> > RPATH-arguments necessary to link with. IOW, if used in a GNU
>> > Makefile you would also need to add these by yourself, right? So
>> > your problem is not a cmake-problem.
>> IMHO it's not fair to say - if it's not
On Tue, May 16, 2017 at 12:09 PM, Patrick Boettcher
<patrick.boettc...@posteo.de> wrote:
> On Tue, 16 May 2017 11:50:47 -0700
> Pawel Veselov <pawel.vese...@gmail.com> wrote:
>
>> >> I'm trying to make CMake add to the linker RPATH automatically.
>> >>
>> I'm trying to make CMake add to the linker RPATH automatically.
>> There is a library that is installed in a non-default location.
>> I'm discovering the library using PkgConfig (custom
>> CMAKE_APPBUNDLE_PATH) and add the library build options to the
>> LINK_FLAGS (using set_property).
>
Hello.
I looked at this : https://cmake.org/Wiki/CMake/Tutorials/Object_Library,
and it suggests that I can use target_link_library() to combine static
libraries together. But I'm utterly failing at it.
Simple:
add_library(mylib STATIC ${lib_source})
target_link_libraries(mylib