Skip to content

Commit

Permalink
Merge pull request #159 from kloczek/master
Browse files Browse the repository at this point in the history
install cmake module in proper path
  • Loading branch information
gdraheim committed Mar 27, 2024
2 parents df9e9c0 + 8e677fd commit 3d339c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zzip/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ endif()

install(EXPORT zziplibTargets
NAMESPACE zziplib::
DESTINATION share/zziplib
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/zziplib
)

file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/zziplib-config.cmake.in"
Expand All @@ -319,7 +319,7 @@ foreach (TARGET_FILE ${TARGET_FILES})
endforeach()
]])
configure_file("${CMAKE_CURRENT_BINARY_DIR}/zziplib-config.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/zziplib-config.cmake" @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/zziplib-config.cmake DESTINATION share/zziplib)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/zziplib-config.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/zziplib)

if(ZZIP_COMPAT OR ZZIP_LIBTOOL)
if(BUILD_SHARED_LIBS AND CMAKE_SHARED_LIBRARY_SONAME_C_FLAG)
Expand Down

0 comments on commit 3d339c1

Please sign in to comment.