summaryrefslogtreecommitdiff
path: root/indra/llcommon
diff options
context:
space:
mode:
authorNicky <nicky.dasmijn@gmail.com>2022-04-16 15:29:02 +0200
committerNicky <nicky.dasmijn@gmail.com>2022-04-16 15:29:02 +0200
commitbb85651d987a6cb969de7dd7c2b130411de6203c (patch)
treed143b3b23331469170515726baa8a76af60135dd /indra/llcommon
parentc8eb53859fb9b9f59d5ce8ef67f4011e95e34a9a (diff)
Create a new target ll::oslibrary to link against libs specific to the OS compiled on.
This gets rid of the a few OS specific set and uses variables (which some even seemed mostly duplicate like WINDOWS_LIBRARIES ans UI_LIBRARIES) and it also solves the problem of having them to tack on every target, as of no they come as a transitive dependency from llcommon
Diffstat (limited to 'indra/llcommon')
-rw-r--r--indra/llcommon/CMakeLists.txt13
1 files changed, 2 insertions, 11 deletions
diff --git a/indra/llcommon/CMakeLists.txt b/indra/llcommon/CMakeLists.txt
index c934d47cc9..4673630a8e 100644
--- a/indra/llcommon/CMakeLists.txt
+++ b/indra/llcommon/CMakeLists.txt
@@ -278,21 +278,15 @@ target_link_libraries(
ll::expat
ll::jsoncpp
ll::zlib-ng
- ${WINDOWS_LIBRARIES}
ll::boost
${GOOGLE_PERFTOOLS_LIBRARIES}
ll::uriparser
+ ll::oslibraries
)
set_target_include_dirs( llcommon ${CMAKE_CURRENT_SOURCE_DIR})
target_include_directories( llcommon PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} )
-if (DARWIN)
- include(CMakeFindFrameworks)
- find_library(CARBON_LIBRARY Carbon)
- target_link_libraries(llcommon ${CARBON_LIBRARY})
-endif (DARWIN)
-
add_dependencies(llcommon stage_third_party_libs)
if (LL_TESTS)
@@ -303,10 +297,7 @@ if (LL_TESTS)
LL_ADD_PROJECT_UNIT_TESTS(llcommon "${llcommon_TEST_SOURCE_FILES}")
#set(TEST_DEBUG on)
- set(test_libs llcommon
- ${WINDOWS_LIBRARIES}
- ll::googlemock
- )
+ set(test_libs llcommon)
LL_ADD_INTEGRATION_TEST(bitpack "" "${test_libs}")
LL_ADD_INTEGRATION_TEST(classic_callback "" "${test_libs}")
LL_ADD_INTEGRATION_TEST(commonmisc "" "${test_libs}")