> On 9 Jan 2017, at 20:55, Brad King wrote:
>
> On 12/21/2016 07:12 AM, Florent Castelli wrote:
>> find_package(foo)
>> if(NOT FOO_FOUND)
>> add_library(foo STATIC foo.cpp)
>> endif()
>
> Instead do
>
> find_package(foo)
> if(NOT FOO_FOUND)
>add_subdirectory(bundled_foo)
> endif()
>
>
On 12/21/2016 07:12 AM, Florent Castelli wrote:
> find_package(foo)
> if(NOT FOO_FOUND)
> add_library(foo STATIC foo.cpp)
> endif()
Instead do
find_package(foo)
if(NOT FOO_FOUND)
add_subdirectory(bundled_foo)
endif()
so that the imported targets are visible. Inside the bundled_foo y
Hi,
In my project, I have to deal with 3rd party libraries. Either the library is
available on the system and then I will try to use that, or I will use sources
bundled in my repository. This is in order to make Linux maintainers happy who
want to have a system-wide shared library, but to also