Set default variables in build recipe correctly.

develop
tastytea 2019-01-21 00:27:38 +01:00
parent 3711f30f3b
commit bd33509e7a
No known key found for this signature in database
GPG Key ID: CFC39497F1B26E07
1 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ add_executable(${CMAKE_PROJECT_NAME}
target_link_libraries(${CMAKE_PROJECT_NAME} target_link_libraries(${CMAKE_PROJECT_NAME}
${LIBXDG_BASEDIR_LIBRARIES} vsqlitepp Qt5::Widgets ${LIBXDG_BASEDIR_LIBRARIES} vsqlitepp Qt5::Widgets
${LIBCONFIG_LIBRARIES} stdc++fs) ${LIBCONFIG_LIBRARIES} stdc++fs)
set(WITH_MAN "YES") set(WITH_MAN "YES" CACHE STRING "WITH_MAN defaults to \"YES\"")
if(WITH_MAN) if(WITH_MAN)
add_custom_command(TARGET ${CMAKE_PROJECT_NAME} POST_BUILD add_custom_command(TARGET ${CMAKE_PROJECT_NAME} POST_BUILD
WORKING_DIRECTORY "${PROJECT_BINARY_DIR}" WORKING_DIRECTORY "${PROJECT_BINARY_DIR}"
@ -73,7 +73,7 @@ if(WITH_MAN)
DESTINATION ${CMAKE_INSTALL_MANDIR}/man1) DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
endif() endif()
set(WITH_TRANSLATIONS "YES") set(WITH_TRANSLATIONS "YES" CACHE STRING "WITH_TRANSLATIONS defaults to \"YES\"")
if(WITH_TRANSLATIONS) if(WITH_TRANSLATIONS)
add_subdirectory(translations) add_subdirectory(translations)
endif() endif()