freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Git][freetype/freetype][master] * CMakeLists.txt: Improve 'bz2' support


From: Werner Lemberg
Subject: [Git][freetype/freetype][master] * CMakeLists.txt: Improve 'bz2' support.
Date: Mon, 15 Feb 2021 08:13:34 +0000

Werner Lemberg pushed to branch master at FreeType / FreeType

Commits:

2 changed files:

Changes:

  • CMakeLists.txt
    ... ... @@ -443,6 +443,7 @@ endif ()
    443 443
     
    
    444 444
     
    
    445 445
     set(PKG_CONFIG_REQUIRED_PRIVATE "")
    
    446
    +set(PKG_CONFIG_LIBS_PRIVATE "")
    
    446 447
     
    
    447 448
     if (ZLIB_FOUND)
    
    448 449
       target_link_libraries(freetype PRIVATE ${ZLIB_LIBRARIES})
    
    ... ... @@ -452,7 +453,7 @@ endif ()
    452 453
     if (BZIP2_FOUND)
    
    453 454
       target_link_libraries(freetype PRIVATE ${BZIP2_LIBRARIES})
    
    454 455
       target_include_directories(freetype PRIVATE ${BZIP2_INCLUDE_DIR}) # not BZIP2_INCLUDE_DIRS
    
    455
    -  list(APPEND PKG_CONFIG_REQUIRED_PRIVATE "bzip2")
    
    456
    +  list(APPEND PKG_CONFIG_LIBS_PRIVATE "-lbz2")
    
    456 457
     endif ()
    
    457 458
     if (PNG_FOUND)
    
    458 459
       target_link_libraries(freetype PRIVATE ${PNG_LIBRARIES})
    
    ... ... @@ -511,7 +512,7 @@ if (NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL)
    511 512
                FREETYPE2_PC_IN ${FREETYPE2_PC_IN})
    
    512 513
         string(REPLACE "%REQUIRES_PRIVATE%" "${PKG_CONFIG_REQUIRED_PRIVATE}"
    
    513 514
                FREETYPE2_PC_IN ${FREETYPE2_PC_IN})
    
    514
    -    string(REPLACE "%LIBS_PRIVATE%" ""  # All libs support pkg-config
    
    515
    +    string(REPLACE "%LIBS_PRIVATE%" "${PKG_CONFIG_LIBS_PRIVATE}"
    
    515 516
                FREETYPE2_PC_IN ${FREETYPE2_PC_IN})
    
    516 517
     
    
    517 518
         set(FREETYPE2_PC_IN_NAME "${PROJECT_BINARY_DIR}/freetype2.pc")
    

  • ChangeLog
    1
    +2021-02-15  Daniel E  <daniel.engberg.lists@pyret.net>
    
    2
    +
    
    3
    +	* CMakeLists.txt: Improve 'bz2' support.
    
    4
    +
    
    5
    +	Not all distributions such as FreeBSD provide a `.pc` file for
    
    6
    +	'(lib)bz2' so follow autotools and add it to `Libs.private` instead.
    
    7
    +
    
    1 8
     2021-02-13  Werner Lemberg  <wl@gnu.org>
    
    2 9
     
    
    3 10
     	* src/tools/update-copyright-year: Fix single-year entry handling.
    


  • reply via email to

    [Prev in Thread] Current Thread [Next in Thread]