Isn't possible to use an IMPORTED library with FetchContent_Declare?
I created two examples for better understanding:
-
https://github.com/bog-dan-ro/cmake-imported-lib - is an
IMPORTED
static library - https://github.com/bog-dan-ro/cmake-imported-lib-test is an example which tries to use it.
Am I doing something wrong or it's a cmake limitation? I'm using cmake version 3.26.4