Skip to content

Commit

Permalink
Merge pull request #940 from doronbehar/pkgconfig-dirs
Browse files Browse the repository at this point in the history
Let CMake figure out pkgconfig directories
  • Loading branch information
JohanMabille authored Aug 21, 2023
2 parents e6fa5ac + 3a602ed commit 80626b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,6 @@ install(EXPORT ${PROJECT_NAME}-targets
FILE ${PROJECT_NAME}Targets.cmake
DESTINATION ${XSIMD_CMAKECONFIG_INSTALL_DIR})

join_paths(libdir_for_pc_file "\${exec_prefix}" "${CMAKE_INSTALL_LIBDIR}")
join_paths(includedir_for_pc_file "\${prefix}" "${CMAKE_INSTALL_INCLUDEDIR}")
configure_file(${PROJECT_NAME}.pc.in
"${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc"
@ONLY)
Expand Down
4 changes: 2 additions & 2 deletions xsimd.pc.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
prefix=@CMAKE_INSTALL_PREFIX@
libdir=@libdir_for_pc_file@
includedir=@includedir_for_pc_file@
libdir=@CMAKE_INSTALL_FULL_LIBDIR@
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@

Name: xsimd
Description: xsimd provides a unified means for using SIMD features for library authors..
Expand Down

0 comments on commit 80626b9

Please sign in to comment.