Skip to content

Commit

Permalink
Don't try to install desktop/gui files when GTK3 isn't found
Browse files Browse the repository at this point in the history
  • Loading branch information
JFreegman committed Feb 25, 2024
1 parent b08dc3c commit e5db5a9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,11 @@ message(STATUS "Build type: ${BUILD_TYPE}")
target_include_directories(spicypass PUBLIC "${SpicyPass_BINARY_DIR}")

install(TARGETS spicypass DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
install(FILES ${GUI_INSTALL_FILES} DESTINATION ${SPICYPASS_INSTALL_DIRECTORY})
install(FILES ${DESKTOP_FILE_PATH} DESTINATION ${APPLICATIONS_DIRECTORY})

if(GTK_FOUND)
install(FILES ${GUI_INSTALL_FILES} DESTINATION ${SPICYPASS_INSTALL_DIRECTORY})
install(FILES ${DESKTOP_FILE_PATH} DESTINATION ${APPLICATIONS_DIRECTORY})
endif()

# Packaging

Expand Down

0 comments on commit e5db5a9

Please sign in to comment.