[cmake-developers] Shared library under Windows and CMake: DLL not found before installation
Joachim Wuttke
j.wuttke at fz-juelich.de
Wed Feb 6 14:40:57 EST 2019
> Add code like this at the top of your project:
>
> ```
> set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
> ```
And combine it with
```
link_directories(BEFORE ${PROJECT_BINARY_DIR}/bin)
```
so that tests find the libraries?
Anyway, my problem is not at link time, but when _executing_ a test.
Is there a canonical way of manipulating the Windows PATH from CMake?
- Joachim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5110 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://cmake.org/pipermail/cmake-developers/attachments/20190206/f9fc0535/attachment-0001.bin>
More information about the cmake-developers
mailing list