From a8d2bb7639f79f5d3d59c8f2f63acb8e56a4069e Mon Sep 17 00:00:00 2001 From: Arugula Bowl Date: Wed, 11 Jul 2018 20:24:58 +0000 Subject: [PATCH] Force cmake to store libraries and executables in the root of the build dir This fixes the tests because they could not find the rai_node executable --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0f55edac..298c46b0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,8 @@ endif (DEFINED GIT_COMMIT) set (CPACK_PACKAGE_VENDOR "Nano Currency") set(CMAKE_INSTALL_RPATH "@executable_path/../Frameworks") +# Create all libraries and executables in the root binary dir +set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) set (RAIBLOCKS_GUI OFF CACHE BOOL "") set (RAIBLOCKS_TEST OFF CACHE BOOL "")