check_c_source_runs: testing external DLLs
Hi guys,
We received a question about using check_c_source_runs to check third-party library functions (https://github.com/microsoft/vcpkg/issues/16793).
In the example, I set the check code, extra include path and the name of the library that needs to be linked. And cmake can successfully build the sample program.
But at runtime, because the path of the third-party library is not necessarily consistent with the path of the sample program, the sample program fails to run: 0xc0000135 The dependent dynamic library cannot be found.
I want to know if this function can be used to check functions in third-party libraries or give me other opinions.
Thanks.
Edited by Brad King