Skip to content

Commit

Permalink
Parametrising location of ld.so.conf files.
Browse files Browse the repository at this point in the history
  • Loading branch information
gl-yziquel committed Jun 24, 2024
1 parent a14ef84 commit ca70db5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion etc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/opencog.conf
"${CMAKE_INSTALL_PREFIX}/lib${LIB_DIR_SUFFIX}/opencog\n")

# Well, this isn't portable, but it works for Linux
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/opencog.conf DESTINATION "/etc/ld.so.conf.d")
set(CMAKE_CONF_PREFIX "/etc" CACHE PATH "Directory for configuration files")
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/opencog.conf DESTINATION "${CMAKE_CONF_PREFIX}/ld.so.conf.d")

0 comments on commit ca70db5

Please sign in to comment.