summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2022-01-10 17:04:26 -0500
committerLinus Groh <mail@linusgroh.de>2022-01-11 00:36:45 +0100
commitd6273674896445504ba6dc61a53cc5c0e23071b8 (patch)
tree4407c92f89f67190bcdc382631a94cf39b6127a2
parentb543c3e490851cf44df45acfb6036b5a56b0ebcc (diff)
downloadserenity-d6273674896445504ba6dc61a53cc5c0e23071b8.zip
LibTimeZone: Do not separate the generated data from the main library
This CMakeLists.txt was basically copy-pasted from LibUnicode, where the generated data is separated into its own library. This was to let other libraries / applications decide if they actually want to link the data because it is so large. LibTimeZone's generated data is significantly smaller, so this separation really isn't needed.
-rw-r--r--Userland/Libraries/LibTimeZone/CMakeLists.txt12
1 files changed, 1 insertions, 11 deletions
diff --git a/Userland/Libraries/LibTimeZone/CMakeLists.txt b/Userland/Libraries/LibTimeZone/CMakeLists.txt
index 834a19747f..218f0217f1 100644
--- a/Userland/Libraries/LibTimeZone/CMakeLists.txt
+++ b/Userland/Libraries/LibTimeZone/CMakeLists.txt
@@ -1,20 +1,10 @@
include(${SerenityOS_SOURCE_DIR}/Meta/CMake/time_zone_data.cmake)
-if (DEFINED TIME_ZONE_DATA_SOURCES)
- set(SOURCES ${TIME_ZONE_DATA_SOURCES})
- serenity_lib(LibTimeZoneData timezonedata)
- target_compile_options(LibTimeZoneData PRIVATE -g0 -Os)
- target_link_libraries(LibTimeZoneData LibCore)
-endif()
-
set(SOURCES
TimeZone.cpp
+ ${TIME_ZONE_DATA_SOURCES}
)
serenity_lib(LibTimeZone timezone)
target_link_libraries(LibTimeZone LibCore)
target_compile_definitions(LibTimeZone PRIVATE ENABLE_TIME_ZONE_DATA=$<BOOL:${ENABLE_TIME_ZONE_DATABASE_DOWNLOAD}>)
-
-if (DEFINED TIME_ZONE_DATA_SOURCES)
- target_link_libraries(LibTimeZone LibTimeZoneData)
-endif()