You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
382 B
15 lines
382 B
11 years ago
|
execute_process(COMMAND ${CMAKE_NM} -D ${TEST_LIBRARY_PATH}
|
||
|
RESULT_VARIABLE RESULT
|
||
|
OUTPUT_VARIABLE OUTPUT
|
||
|
ERROR_VARIABLE ERROR
|
||
|
)
|
||
|
|
||
|
if(NOT "${RESULT}" STREQUAL "0")
|
||
|
message(FATAL_ERROR "nm failed [${RESULT}] [${OUTPUT}] [${ERROR}]")
|
||
|
endif()
|
||
|
|
||
|
if(${OUTPUT} MATCHES "Foo[^\\n]*bar")
|
||
|
message(FATAL_ERROR
|
||
|
"Found Foo::bar() which should have been hidden [${OUTPUT}]")
|
||
|
endif()
|