[WIN32] Fix missed creation of lv2 directory.
commitadb2d8552320910f84df7fa7c0be5f48e7453d7e
authorCarlo Bramini <30959007+carlo-bramini@users.noreply.github.com>
Mon, 25 Oct 2021 09:51:39 +0000 (25 11:51 +0200)
committerMark McCurry <mark.d.mccurry@gmail.com>
Mon, 25 Oct 2021 23:31:58 +0000 (25 19:31 -0400)
tree8cb6de0dc8e78759765afe8ac1c456f5d9f1c8c6
parent6846d54cdb67c5663504cb758c08f485d53f6bf8
[WIN32] Fix missed creation of lv2 directory.

This patch fixes issue 200:
https://sourceforge.net/p/zynaddsubfx/bugs/200/

The explanation of the defect is described into this page:
https://cmake.org/cmake/help/v3.9/manual/cmake-buildsystem.7.html

In short:
- All versions of Windows are "DLL platforms", and DLL are targets for "bin" directory.
- On all other "non-DLL platforms", the shared libraries are targets for "lib" directory.

This means that:
- On DLL platforms: RUNTIME_OUTPUT_DIRECTORY and RUNTIME_OUTPUT_NAME target properties are used.
- On non-DLL platforms: LIBRARY_OUTPUT_DIRECTORY and LIBRARY_OUTPUT_NAME target properties are used.

So, RUNTIME_OUTPUT_DIRECTORY must be set in addition to LIBRARY_OUTPUT_DIRECTORY for supporting "DLL platforms".
src/Plugin/AlienWah/CMakeLists.txt
src/Plugin/Chorus/CMakeLists.txt
src/Plugin/Distortion/CMakeLists.txt
src/Plugin/DynamicFilter/CMakeLists.txt
src/Plugin/Echo/CMakeLists.txt
src/Plugin/Phaser/CMakeLists.txt
src/Plugin/Reverb/CMakeLists.txt
src/Plugin/ZynAddSubFX/CMakeLists.txt