diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2022-11-22 23:11:29 +0200 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2022-11-22 23:12:05 +0200 |
commit | de0317cc3f5f42ccf51a7bbfdd04e8b16d51e811 (patch) | |
tree | 36b368602ac3aa1bdf9df97a0fb65c92767f457f /indra/cmake/FreeType.cmake | |
parent | daa1257466ee3cf000e2c94ef05259577ea513b4 (diff) | |
parent | 395a60a83e954e9bcbb44dc6f1a49319b2d628b7 (diff) |
Merge branch 'DRTVWR-568' into DRTVWR-539
Diffstat (limited to 'indra/cmake/FreeType.cmake')
-rw-r--r-- | indra/cmake/FreeType.cmake | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/indra/cmake/FreeType.cmake b/indra/cmake/FreeType.cmake index a36485f6d0..77140af641 100644 --- a/indra/cmake/FreeType.cmake +++ b/indra/cmake/FreeType.cmake @@ -1,14 +1,11 @@ # -*- cmake -*- include(Prebuilt) -if (USESYSTEMLIBS) - include(FindPkgConfig) +include_guard() +add_library( ll::freetype INTERFACE IMPORTED ) - pkg_check_modules(FREETYPE REQUIRED freetype2) -else (USESYSTEMLIBS) - use_prebuilt_binary(freetype) - set(FREETYPE_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include/freetype2/) - set(FREETYPE_LIBRARIES freetype) -endif (USESYSTEMLIBS) +use_system_binary(freetype) +use_prebuilt_binary(freetype) +target_include_directories( ll::freetype SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include/freetype2/) +target_link_libraries( ll::freetype INTERFACE freetype ) -link_directories(${FREETYPE_LIBRARY_DIRS}) |