diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2018-12-03 19:23:35 +0000 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2018-12-03 22:35:37 +0000 |
commit | c3741a653b945be556bd606f5c8d3bc46f615d5f (patch) | |
tree | 439365402ddbcd0e97fc5129bd447790507fe31c /help | |
parent | e60cb857de35011389a807ea023ba2cdbd33c97e (diff) |
CMake: Simplify CMAKE_INSTALL_DATADIR usage
Change-Id: I414aa551b8e9315a654f4da62b882e787d4f6d53
Reviewed-on: https://code.wireshark.org/review/30904
Petri-Dish: João Valverde <j@v6e.pt>
Tested-by: Petri Dish Buildbot
Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'help')
-rw-r--r-- | help/CMakeLists.txt | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/help/CMakeLists.txt b/help/CMakeLists.txt index ddf1f068d2..764feeea02 100644 --- a/help/CMakeLists.txt +++ b/help/CMakeLists.txt @@ -59,13 +59,7 @@ foreach(_help_file ${HELP_FILES}) list(APPEND copy_help_files_depends "${_dst_file}") endforeach() -if(WIN32) - set(HELP_FILES_DATADIR "help") -else() - set(HELP_FILES_DATADIR "${CMAKE_INSTALL_DATADIR}/${CPACK_PACKAGE_NAME}/help") -endif() - add_custom_target(copy_help_files ALL DEPENDS ${copy_help_files_depends} ) set_target_properties(copy_help_files PROPERTIES FOLDER "Copy Tasks") -install(FILES ${HELP_FILES} DESTINATION ${HELP_FILES_DATADIR}) +install(FILES ${HELP_FILES} DESTINATION "${CMAKE_INSTALL_DATADIR}/help") |