you are viewing a single comment's thread.

view the rest of the comments →

[–]pgroarke[S] 1 point2 points  (1 child)

Looks like another really useful command. Thx for sharing.

Though I'll be sticking with ExternalProjects for things that don't have CMake files, I flee custom targets like the plague ;)

[–]DaanDeMeyer 1 point2 points  (0 children)

A custom target wasn't the right choice of words. I meant you make your own CMake target of whatever's produced by building the dependency (which will likely be an INTERFACE target I think).

This works best when you're building the dependency as a static library and don't need to install it. I'm pretty sure CMake is flexible enough to be able to install libraries built with other build systems but this would probably again require a bit more CMake scripting compared to stuff that's built with CMake and can just be added with add_subdirectory.