From 1af8bdda16934a9aeb0c63ca42a1131c7ece0439 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Wed, 6 May 2026 18:49:19 +0200 Subject: [PATCH] Have CMake put RGBDS executables in our own dir Not the top-level if we are part of a larger project! --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 98aba0f4..f35c87a3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -108,7 +108,7 @@ install(TARGETS rgbasm rgblink rgbfix rgbgfx RUNTIME COMPONENT binaries) # Tests expect the binaries to end up in-source; this is more acceptable than the entire artifact dir. set_target_properties(rgbasm rgblink rgbfix rgbgfx PROPERTIES # The generator expression (even if a no-op) stops muti-config generators using a of "per-configuration subdirectory". - RUNTIME_OUTPUT_DIRECTORY $<1:${CMAKE_SOURCE_DIR}>) + RUNTIME_OUTPUT_DIRECTORY $<1:${CMAKE_CURRENT_SOURCE_DIR}/..>) target_link_libraries(rgbgfx PRIVATE PNG::PNG) # Copy the DLLs in the output directory so the program can be run for testing without having to `install`. # From https://cmake.org/cmake/help/v4.3/manual/cmake-generator-expressions.7.html#genex:TARGET_RUNTIME_DLLS.