Using STATUS looks nicer here (and it's an informational message only).
Old:
CMake Warning at CMake/memaccess.cmake:39 (MESSAGE):
Cross compiling - using portable code for memory access
Call Stack (most recent call first):
CMakeLists.txt:93 (memaccess_check_unaligned_le)
New:
-- Cross compiling - using portable code for memory access
}" ${_var})
endif()
if(CMAKE_CROSSCOMPILING)
- message(WARNING "Cross compiling - using portable code for memory access")
+ message(STATUS "Cross compiling - using portable code for memory access")
endif()
endfunction()