Meta: Redefine link_with_unicode_data to not include unicode_data.cmake

This is to prevent an import cycle in a subsequent commit.
This commit is contained in:
Timothy Flynn 2021-12-30 08:47:38 -05:00 committed by Linus Groh
parent 363eafbc44
commit a70e029236
Notes: sideshowbarker 2024-07-18 08:59:31 +09:00

View File

@ -1,7 +1,6 @@
include(${CMAKE_CURRENT_LIST_DIR}/serenity_components.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/code_generators.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/unicode_data.cmake)
function(serenity_install_headers target_name)
file(GLOB_RECURSE headers RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.h")
@ -155,7 +154,7 @@ function(embed_resource target section file)
endfunction()
function(link_with_unicode_data target)
if (DEFINED UNICODE_DATA_SOURCES)
if (ENABLE_UNICODE_DATABASE_DOWNLOAD)
target_link_libraries("${target}" LibUnicodeData)
endif()
endfunction()