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:
parent
76e1a5b892
commit
eee32c030b
|
@ -597,7 +597,6 @@ else()
|
||||||
include_directories(Externals/LZO)
|
include_directories(Externals/LZO)
|
||||||
set(LZO lzo2)
|
set(LZO lzo2)
|
||||||
endif()
|
endif()
|
||||||
list(APPEND LIBS ${LZO})
|
|
||||||
|
|
||||||
if(NOT APPLE)
|
if(NOT APPLE)
|
||||||
check_lib(PNG libpng png png.h QUIET)
|
check_lib(PNG libpng png png.h QUIET)
|
||||||
|
|
|
@ -280,7 +280,6 @@ PUBLIC
|
||||||
discio
|
discio
|
||||||
enet
|
enet
|
||||||
inputcommon
|
inputcommon
|
||||||
${LZO}
|
|
||||||
${MBEDTLS_LIBRARIES}
|
${MBEDTLS_LIBRARIES}
|
||||||
pugixml
|
pugixml
|
||||||
sfml-network
|
sfml-network
|
||||||
|
@ -289,6 +288,9 @@ PUBLIC
|
||||||
videoogl
|
videoogl
|
||||||
videosoftware
|
videosoftware
|
||||||
z
|
z
|
||||||
|
|
||||||
|
PRIVATE
|
||||||
|
${LZO}
|
||||||
)
|
)
|
||||||
|
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
|
|
Loading…
Reference in New Issue