From 69ff06e1b9c786229e446c4736f48d1d4e470379 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sun, 12 Apr 2009 00:05:27 +0200 Subject: [PATCH] VstBase/CMakeLists.txt: do not fail with broken wineg++ With newer versions of wineg++ (1.1) errorneously adds the suffix ".exe" to the target binary. This causes "make install" to fail. Therefore rename remote_vst_plugin.exe if it exists. --- plugins/vst_base/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/vst_base/CMakeLists.txt b/plugins/vst_base/CMakeLists.txt index 68a9eaf81..35b6fa770 100644 --- a/plugins/vst_base/CMakeLists.txt +++ b/plugins/vst_base/CMakeLists.txt @@ -23,6 +23,7 @@ ADD_CUSTOM_COMMAND( SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/remote_vst_plugin.cpp COMMAND wineg++ ARGS -I${CMAKE_BINARY_DIR} -I${CMAKE_SOURCE_DIR}/include -I${CMAKE_INSTALL_PREFIX}/include/wine/windows -I/usr/include/wine/windows ${CMAKE_CURRENT_SOURCE_DIR}/remote_vst_plugin.cpp -mwindows -lpthread ${EXTRA_FLAGS} -o remote_vst_plugin + COMMAND find -name remote_vst_plugin.exe -exec mv "'{}'" remote_vst_plugin "';'" TARGET vstbase OUTPUTS remote_vst_plugin )