mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-19 20:08:28 +01:00
CMakeLists.txt: set @ONLY in configure_file() calls
this matches the behavior in autoconf and avoids expanding the ${var} references in the files; the .pc files now match the autoconf install. pointed out by @kmilos in: https://github.com/AOMediaCodec/libavif/pull/1035#discussion_r947847183 Change-Id: Ib1950a290b73b7e689658e6c2f25c8784b586180
This commit is contained in:
parent
62b1bfe8bd
commit
0dd49d1a3a
@ -159,7 +159,7 @@ endif()
|
||||
|
||||
function(configure_pkg_config FILE)
|
||||
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/${FILE}.in"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/${FILE}")
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/${FILE}" @ONLY)
|
||||
|
||||
if(HAVE_MATH_LIBRARY)
|
||||
# MSVC doesn't have libm
|
||||
@ -226,7 +226,7 @@ endforeach()
|
||||
|
||||
# Generate the config.h file.
|
||||
configure_file(${CMAKE_CURRENT_LIST_DIR}/cmake/config.h.in
|
||||
${CMAKE_CURRENT_BINARY_DIR}/src/webp/config.h)
|
||||
${CMAKE_CURRENT_BINARY_DIR}/src/webp/config.h @ONLY)
|
||||
add_definitions(-DHAVE_CONFIG_H)
|
||||
|
||||
# Set the version numbers.
|
||||
|
Loading…
Reference in New Issue
Block a user