[CMake] ExternalProject_Add + imported targets: no rule to make yourlibrary.so

Bill Hoffman bill.hoffman at kitware.com
Tue May 3 17:42:55 EDT 2016


On 4/28/2016 4:31 PM, SnakE wrote:
> set_target_properties(foo PROPERTIES IMPORTED_LOCATION foo.so)
https://cmake.org/cmake/help/v3.0/prop_tgt/IMPORTED_LOCATION.html?highlight=imported_location

"Full path to the main file on disk for an IMPORTED target."

You need to use a full path to foo.so, works by luck with make.

-Bill




More information about the CMake mailing list