Re: [CMake] Why isn't target_link_libraries not enough in some cases?

2018-05-04 Thread Craig Scott
On Sat, May 5, 2018 at 1:33 AM, Francis Giraldeau < francis.girald...@gmail.com> wrote: > > Hi, > > > > I am fetching and building SDL2 using FetchContent and then using > > target_link_libraries(MyExe SDL2) in the hopes that the required include > > directories and libraries will be added populat

Re: [CMake] Why isn't target_link_libraries not enough in some cases?

2018-05-04 Thread Francis Giraldeau
> Hi, > > I am fetching and building SDL2 using FetchContent and then using > target_link_libraries(MyExe SDL2) in the hopes that the required include > directories and libraries will be added populated properly. The example > project can be found here: > > https://github.com/samaursa/cmake_fetch_c

[CMake] Why isn't target_link_libraries not enough in some cases?

2018-04-04 Thread Saad Khattak
Hi, I am fetching and building SDL2 using FetchContent and then using target_link_libraries(MyExe SDL2) in the hopes that the required include directories and libraries will be added populated properly. The example project can be found here: https://github.com/samaursa/cmake_fetch_content_SDL2 U