AimRT/_deps/gflags-src/test/gflags_strip_flags_test.cmake
2025-01-12 20:42:42 +08:00

8 lines
270 B
CMake

if (NOT BINARY)
message (FATAL_ERROR "BINARY file to check not specified!")
endif ()
file (STRINGS "${BINARY}" strings REGEX "This text should be stripped out")
if (strings)
message (FATAL_ERROR "Text not stripped from binary like it should be: ${BINARY}")
endif ()