OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-atomspace-cog commits / 708bb51

Declare library dependencies correctly
708bb517fb56b96c1a774d1924bb045d17df0d1f
by Linas Vepstas <linasvepstas@gmail.com> · 2025-12-13T01:56:40.000Z

Changed files (3) +14 -5

CMakeLists.txt +10 -1
……@@ -99,6 +99,15 @@ ELSE (ATOMSPACE_STORAGE_FOUND)
9999 MESSAGE(FATAL_ERROR "AtomSpace Storage missing: it is needed!")
100100ENDIF (ATOMSPACE_STORAGE_FOUND)
101101
102# CogServer - needed for unit tests
103FIND_PACKAGE(CogServer CONFIG)
104IF (COGSERVER_FOUND)
105 MESSAGE(STATUS "CogServer found.")
106 SET(HAVE_COGSERVER 1)
107ELSE (COGSERVER_FOUND)
108 MESSAGE(STATUS "CogServer missing: needed for unit tests.")
109ENDIF (COGSERVER_FOUND)
110
102111# ----------------------------------------------------------
103112# Needed for unit tests
104113
……@@ -242,6 +251,6 @@ FIND_PACKAGE(Doxygen)
242251
243252SUMMARY_ADD("AtomSpace-Cog" "AtomSpace CogServer Network Client" HAVE_ATOMSPACE)
244253SUMMARY_ADD("Doxygen" "Code documentation" DOXYGEN_FOUND)
245SUMMARY_ADD("Unit tests" "Unit tests" CXXTEST_FOUND)
254SUMMARY_ADD("Unit tests" "Unit tests" CXXTEST_FOUND AND HAVE_COGSERVER)
246255
247256SUMMARY_SHOW()
tests/persist/cog-simple/CMakeLists.txt +2 -2
……@@ -1,8 +1,8 @@
11
22LINK_LIBRARIES(
33 persist-cog-simple
4 server
5 atomspace
4 ${COGSERVER_LIBRARIES}
5 ${ATOMSPACE_LIBRARIES}
66)
77
88# The nine unit tests, ported over from the
tests/persist/cog-storage/CMakeLists.txt +2 -2
……@@ -1,8 +1,8 @@
11
22LINK_LIBRARIES(
33 persist-cog
4 server
5 atomspace
4 ${COGSERVER_LIBRARIES}
5 ${ATOMSPACE_LIBRARIES}
66)
77
88# The seven unit tests, ported over from the