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 2018-03-31 14:59:12 -04:00
parent 76e1a5b892
commit eee32c030b
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7
2 changed files with 3 additions and 2 deletions

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)

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)