mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
build: Improve the search for an AWK processor in the CMake build
Add nawk to the list of AWK-processing programs that are known to work, and show the search result in the CMake log.
This commit is contained in:
parent
aa95dee697
commit
d165a20ae4
@ -353,7 +353,15 @@ int main(void) { return 0; }
|
||||
file(REMOVE "${CMAKE_CURRENT_BINARY_DIR}/conftest.map")
|
||||
endif()
|
||||
|
||||
find_program(AWK NAMES gawk awk)
|
||||
# Find an AWK language processor.
|
||||
# Start with specific AWK implementations like gawk and nawk, which are
|
||||
# known to work with our scripts, then fall back to the system awk.
|
||||
find_program(AWK NAMES gawk nawk awk)
|
||||
if(AWK)
|
||||
message(STATUS "Found AWK program: ${AWK}")
|
||||
else()
|
||||
message(STATUS "Could not find an AWK-compatible program")
|
||||
endif()
|
||||
|
||||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user