More targeted definition of DESKTOP_APP_USE_PACKAGED_RLOTTIE macro
Exclude it from common options, define it only for necessarily targets.
This commit is contained in:
parent
a87ac4ad0c
commit
78627af3f5
2 changed files with 6 additions and 8 deletions
7
external/rlottie/CMakeLists.txt
vendored
7
external/rlottie/CMakeLists.txt
vendored
|
|
@ -22,7 +22,12 @@ if (DESKTOP_APP_USE_PACKAGED)
|
|||
endif()
|
||||
endif()
|
||||
|
||||
if (NOT rlottie_FOUND AND NOT RLOTTIE_FOUND)
|
||||
if (rlottie_FOUND OR RLOTTIE_FOUND)
|
||||
target_compile_definitions(external_rlottie
|
||||
INTERFACE
|
||||
DESKTOP_APP_USE_PACKAGED_RLOTTIE
|
||||
)
|
||||
else()
|
||||
add_library(external_rlottie_bundled STATIC)
|
||||
init_target(external_rlottie_bundled "(external)")
|
||||
|
||||
|
|
|
|||
|
|
@ -77,13 +77,6 @@ if (DESKTOP_APP_USE_PACKAGED_FONTS)
|
|||
)
|
||||
endif()
|
||||
|
||||
if (rlottie_FOUND OR RLOTTIE_FOUND)
|
||||
target_compile_definitions(common_options
|
||||
INTERFACE
|
||||
DESKTOP_APP_USE_PACKAGED_RLOTTIE
|
||||
)
|
||||
endif()
|
||||
|
||||
if (NOT DESKTOP_APP_SPECIAL_TARGET STREQUAL "")
|
||||
target_compile_definitions(common_options
|
||||
INTERFACE
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue