Skip to content

Commit

Permalink
cmake: fix install target
Browse files Browse the repository at this point in the history
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/
  • Loading branch information
pallas committed Nov 20, 2020
1 parent cb33791 commit 83b0652
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 83b0652

Please sign in to comment.