Skip to content

Commit

Permalink
Homogeneize CMake logs (AOMediaCodec#2587)
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
vrabaud authored Jan 31, 2025
1 parent 2c2de78 commit 83172c6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions cmake/Modules/LocalGTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ else()
if(EXISTS "${AVIF_SOURCE_DIR}/ext/googletest")
message(STATUS "libavif(AVIF_GTEST=LOCAL): ext/googletest found; using as FetchContent SOURCE_DIR")
set(FETCHCONTENT_SOURCE_DIR_GOOGLETEST "${AVIF_SOURCE_DIR}/ext/googletest")
message(CHECK_START "libavif(AVIF_GTEST): configuring googletest")
message(CHECK_START "libavif(AVIF_GTEST=LOCAL): configuring googletest")
else()
message(CHECK_START "libavif(AVIF_GTEST): fetching and configuring googletest")
message(CHECK_START "libavif(AVIF_GTEST=LOCAL): fetching and configuring googletest")
endif()

FetchContent_Declare(
Expand Down
4 changes: 2 additions & 2 deletions cmake/Modules/LocalLibXml2.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ else()
if(EXISTS "${AVIF_SOURCE_DIR}/ext/libxml2")
message(STATUS "libavif(AVIF_LIBXML2=LOCAL): ext/libxml2 found; using as FetchContent SOURCE_DIR")
set(FETCHCONTENT_SOURCE_DIR_LIBXML2 "${AVIF_SOURCE_DIR}/ext/libxml2")
message(CHECK_START "libavif(AVIF_LIBXML2): configuring libxml2")
message(CHECK_START "libavif(AVIF_LIBXML2=LOCAL): configuring libxml2")
else()
message(CHECK_START "libavif(AVIF_LIBXML2): fetching and configuring libxml2")
message(CHECK_START "libavif(AVIF_LIBXML2=LOCAL): fetching and configuring libxml2")
endif()

set(LIBXML2_WITH_PYTHON OFF CACHE INTERNAL "-")
Expand Down
10 changes: 5 additions & 5 deletions cmake/Modules/LocalLibargparse.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ set(LIBARGPARSE_FILENAME
)

if(EXISTS "${LIBARGPARSE_FILENAME}")
message(STATUS "libavif(AVIF_LIBARGPARSE): compiled library found at ${LIBARGPARSE_FILENAME}")
message(STATUS "libavif(AVIF_LIBARGPARSE=LOCAL): compiled library found at ${LIBARGPARSE_FILENAME}")
add_library(libargparse STATIC IMPORTED GLOBAL)
set_target_properties(libargparse PROPERTIES IMPORTED_LOCATION "${LIBARGPARSE_FILENAME}" AVIF_LOCAL ON)
target_include_directories(libargparse INTERFACE "${AVIF_SOURCE_DIR}/ext/libargparse/src")
else()
message(STATUS "libavif(AVIF_LIBARGPARSE): compiled library not found at ${LIBARGPARSE_FILENAME}; using FetchContent")
message(STATUS "libavif(AVIF_LIBARGPARSE=LOCAL): compiled library not found at ${LIBARGPARSE_FILENAME}; using FetchContent")
if(EXISTS "${AVIF_SOURCE_DIR}/ext/libargparse")
message(STATUS "libavif(AVIF_LIBARGPARSE): ext/libargparse found; using as FetchContent SOURCE_DIR")
message(STATUS "libavif(AVIF_LIBARGPARSE=LOCAL): ext/libargparse found; using as FetchContent SOURCE_DIR")
set(FETCHCONTENT_SOURCE_DIR_LIBARGPARSE "${AVIF_SOURCE_DIR}/ext/libargparse")
message(CHECK_START "libavif(AVIF_LIBARGPARSE): configuring libargparse")
message(CHECK_START "libavif(AVIF_LIBARGPARSE=LOCAL): configuring libargparse")
else()
message(CHECK_START "libavif(AVIF_LIBARGPARSE): fetching and configuring libargparse")
message(CHECK_START "libavif(AVIF_LIBARGPARSE=LOCAL): fetching and configuring libargparse")
endif()

FetchContent_Declare(
Expand Down

0 comments on commit 83172c6

Please sign in to comment.