Set default variables in build recipe correctly.
Some checks failed
the build failed

This commit is contained in:
tastytea 2019-01-21 00:27:38 +01:00
parent 3711f30f3b
commit bd33509e7a
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07

View File

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