Conversation
| @@ -31,6 +31,14 @@ if(NOT TARGET dlib-shared AND NOT dlib_BINARY_DIR) | ||
| unset(dlib_deps_threads_check) | ||
| endif() | ||
| @@ -12,6 +12,18 @@ |
There was a problem hiding this comment.
Key change: Call find_dependency() early.
My last information was that CMake does not care about order as long as the target exists at the end of of configure (and there is no if(TARGET) check observing the target early). |
It is right that typical errors are thrown only in the generation step, after the configuration step. OTOH proper operation of config mode with imported targets and useful diagnostics relies on |
Alternative to #50979.