CMakeLists: Remove lzo from the LIBS variable and make linkage private

The only place this library is needed (core) is already linked in the core target.
Also make the linkage private to create linkage failures if the dependency isn't
explicitly linked in elsewhere where it should be.

Reduces the dependency on the LIBS variable.
This commit is contained in:
Lioncash committed 2018-03-31 15:01:05 -04:00
1 parent 76e1a5b892
commit eee32c030b
2 files changed
+3 -2

No files matched your search

-1
View File
@@ -597,7 +597,6 @@ else()
include_directories(Externals/LZO)
set(LZO lzo2)
endif()
list(APPEND LIBS ${LZO})
if(NOT APPLE)
check_lib(PNG libpng png png.h QUIET)
+3 -1
View File
@@ -280,7 +280,6 @@ PUBLIC
discio
enet
inputcommon
${LZO}
${MBEDTLS_LIBRARIES}
pugixml
sfml-network
@@ -289,6 +288,9 @@ PUBLIC
videoogl
videosoftware
z
PRIVATE
${LZO}
)
if (APPLE)