Skip to content

Commit

Permalink
cannot install list-libcamera if it is not build
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertvanheusden committed Apr 19, 2024
1 parent 4bc350d commit 49ecebd
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 @@ -291,6 +291,7 @@ if (LIBCAMERA_FOUND)
target_include_directories(list-libcamera PUBLIC ${LIBCAMERA_INCLUDE_DIRS})
target_compile_options(list-libcamera PUBLIC ${LIBCAMERA_CFLAGS_OTHER})
target_include_directories(list-libcamera PUBLIC "${PROJECT_BINARY_DIR}")
install(TARGETS list-libcamera DESTINATION bin)
else()
message("libcamera NOT found, list-libcamera won't be build")
endif()
Expand Down Expand Up @@ -350,7 +351,6 @@ target_include_directories(constatus PUBLIC "${PROJECT_BINARY_DIR}")
target_link_libraries(constatus "-Wl,--export-dynamic -latomic")

install(TARGETS constatus DESTINATION bin)
install(TARGETS list-libcamera DESTINATION bin)
install(FILES man/constatus.1 DESTINATION ${CMAKE_INSTALL_PREFIX}/share/man/man1)
install(FILES constatus.cfg DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc/constatus)
install(FILES LICENSE DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc/constatus)
Expand Down

0 comments on commit 49ecebd

Please sign in to comment.