From 83b065237264ed186a6eb292c26ae55c69e26e68 Mon Sep 17 00:00:00 2001 From: Derrick Lyndon Pallas Date: Fri, 20 Nov 2020 09:54:03 -0800 Subject: [PATCH] cmake: fix install target This change allows install from build directories that are not the source directory. PROGRAMS are part of the source directory while TARGETS/RUNTIME are executibles generated by the build. I've gotten this right in other projects, just messed it up here. tl;dr: s/PROGRAMS/TARGETS/ --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3461332b..983fa666 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,4 +19,4 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${RENDERER_FLAGS}" ) add_executable( rpiplay rpiplay.cpp) target_link_libraries ( rpiplay renderers airplay ) -install(PROGRAMS rpiplay DESTINATION bin) +install(TARGETS rpiplay RUNTIME DESTINATION bin)