Skip to content

Commit

Permalink
Fix LIB_INSTALL_DIR variable in CMakeLists.txt
Browse files Browse the repository at this point in the history
CMakeLists.txt is not handling install direcctories properly for creating .pc files.
It should depend on PREFIX.

Signed-off-by: linuxias <[email protected]>
  • Loading branch information
linuxias committed Feb 28, 2024
1 parent 21313d5 commit 001ad07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed")
SET(SO_VERSION ${VERSION})
SET(PREFIX ${CMAKE_INSTALL_PREFIX})
SET(EXEC_PREFIX ${PREFIX}/bin)
SET(LIB_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR})
SET(LIB_INSTALL_DIR ${PREFIX}/${CMAKE_INSTALL_LIBDIR})
SET(INCLUDE_INSTALL_DIR "${PREFIX}/include/nnstreamer")

SET(SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src)
Expand Down Expand Up @@ -106,4 +106,4 @@ ENDIF()
# pkgconfig file
CONFIGURE_FILE(nnstreamer-edge.pc.in nnstreamer-edge.pc @ONLY)
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/nnstreamer-edge.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)

0 comments on commit 001ad07

Please sign in to comment.