From 31d1b7966206eae13075785216ff0ed58dc94fb6 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Fri, 12 Jan 2018 02:43:42 +0100 Subject: DEPENDS on custom command does not seem to work with ninja, add it as depency to the target the custom command belongs to --- main/src/main/cpp/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'main') diff --git a/main/src/main/cpp/CMakeLists.txt b/main/src/main/cpp/CMakeLists.txt index 85b3403b..78cc0a39 100644 --- a/main/src/main/cpp/CMakeLists.txt +++ b/main/src/main/cpp/CMakeLists.txt @@ -177,14 +177,16 @@ add_custom_command(TARGET nopie_openvpn.${ANDROID_ABI} POST_BUILD ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/nopie_openvpn.${ANDROID_ABI} ${OVPN_ASSET_DIR} - DEPENDS makeassetdir) +) add_custom_command(TARGET pie_openvpn.${ANDROID_ABI} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/pie_openvpn.${ANDROID_ABI} ${OVPN_ASSET_DIR} - DEPENDS makeassetdir) +) # Hack that these targets are really executed add_dependencies(opvpnutil pie_openvpn.${ANDROID_ABI} nopie_openvpn.${ANDROID_ABI}) +add_dependencies(pie_openvpn.${ANDROID_ABI} makeassetdir) +add_dependencies(nopie_openvpn.${ANDROID_ABI} makeassetdir) -- cgit v1.2.3