CMake: User a better definition for WIRESHARK_INSTALL_CMAKEDIR

Previously this was lib/wireshark/cmake. User lib/cmake/wireshark
instead. Both are standard search paths but the second is more
conventional and inline with expected package behaviour on Unix.
This commit is contained in:
João Valverde 2023-06-13 16:35:04 +01:00
parent 194b578e82
commit c58705654d
1 changed files with 1 additions and 1 deletions

View File

@ -4052,7 +4052,7 @@ if(WIN32 AND NOT USE_MSYSTEM)
# path (incorrect relative path computation).
set(WIRESHARK_INSTALL_CMAKEDIR "cmake")
else()
set(WIRESHARK_INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME}/cmake")
set(WIRESHARK_INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}")
endif()
include(CMakePackageConfigHelpers)