From 7f2df48701def058486802a10ff85ff5f4bc78bb Mon Sep 17 00:00:00 2001 From: Nicky Date: Mon, 4 Mar 2019 16:51:55 +0100 Subject: [PATCH] Normal builds have to add target_link_libraries to avoid linker errors. --- indra/llwindow/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/indra/llwindow/CMakeLists.txt b/indra/llwindow/CMakeLists.txt index 1677d6f25f..45164f91ca 100644 --- a/indra/llwindow/CMakeLists.txt +++ b/indra/llwindow/CMakeLists.txt @@ -203,6 +203,6 @@ if (SDL_FOUND) ) endif (SDL_FOUND) -# ND: What kind of sorcery is this supposed to be, link llwindow against itself? cmake does not like this a bit. -# target_link_libraries (llwindow ${llwindow_LINK_LIBRARIES}) - +if (NOT USESYSTEMLIBS) +target_link_libraries (llwindow ${llwindow_LINK_LIBRARIES}) +endif()