Commit f679cd2c authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

append LIB_SUFFIX to library dir

parent 2be285cc
Pipeline #14311 passed with stage
in 5 seconds
......@@ -19,10 +19,10 @@ if(PKG_CONFIG_FOUND)
# Produce a pkg-config file for linking against the shared lib
configure_file("libxil.pc.in" "libxil.pc" @ONLY)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libxil.pc" DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libxil.pc" DESTINATION "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}/pkgconfig")
endif()
install(TARGETS xil DESTINATION lib)
install(TARGETS xil DESTINATION "lib${LIB_SUFFIX}")
file(GLOB HEADERS include/xilinx/*.h)
......
......@@ -33,7 +33,7 @@ The development headers for libxil.
%build
mkdir -p build
cd build
%cmake ..
%cmake -DCMAKE_INSTALL_LIBDIR=${_libdir} ..
make
%install
......@@ -48,11 +48,11 @@ make install DESTDIR=$RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT
%files
/usr/lib/libxil.so
/usr/lib/pkgconfig/libxil.pc
%{_libdir}/libxil.so
%{_libdir}/pkgconfig/libxil.pc
%files devel
/usr/include/xilinx/*
%{_includedir}/xilinx/*
%changelog
* Fri Mar 17 2017 Steffen Vogel <stvogel@eonerc.rwth-aachen.de
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment