Skip to content

Commit 3a602ed

Browse files
committed
Let CMake figure out pkgconfig directories
1 parent e6fa5ac commit 3a602ed

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

CMakeLists.txt

-2
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,6 @@ install(EXPORT ${PROJECT_NAME}-targets
156156
FILE ${PROJECT_NAME}Targets.cmake
157157
DESTINATION ${XSIMD_CMAKECONFIG_INSTALL_DIR})
158158

159-
join_paths(libdir_for_pc_file "\${exec_prefix}" "${CMAKE_INSTALL_LIBDIR}")
160-
join_paths(includedir_for_pc_file "\${prefix}" "${CMAKE_INSTALL_INCLUDEDIR}")
161159
configure_file(${PROJECT_NAME}.pc.in
162160
"${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc"
163161
@ONLY)

xsimd.pc.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
prefix=@CMAKE_INSTALL_PREFIX@
2-
libdir=@libdir_for_pc_file@
3-
includedir=@includedir_for_pc_file@
2+
libdir=@CMAKE_INSTALL_FULL_LIBDIR@
3+
includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
44

55
Name: xsimd
66
Description: xsimd provides a unified means for using SIMD features for library authors..

0 commit comments

Comments
 (0)