diff options
author | Brad King <brad.king@kitware.com> | 2015-05-22 19:24:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-05-22 19:24:18 (GMT) |
commit | 771f1b00dc1e9422e543534ca2ea823c98b3e2be (patch) | |
tree | d03ae2d748632c1029d0cedfaf99357e839b174d /Tests/Visibility/verify.cmake | |
parent | ab55b3b5faac694c28d8725e235923803fb83a8d (diff) | |
download | CMake-771f1b00dc1e9422e543534ca2ea823c98b3e2be.zip CMake-771f1b00dc1e9422e543534ca2ea823c98b3e2be.tar.gz CMake-771f1b00dc1e9422e543534ca2ea823c98b3e2be.tar.bz2 |
Tests: Rename Visibility{InlinesHidden =>}
We will soon generalize it to cover other visibility properties.
Diffstat (limited to 'Tests/Visibility/verify.cmake')
-rw-r--r-- | Tests/Visibility/verify.cmake | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Tests/Visibility/verify.cmake b/Tests/Visibility/verify.cmake new file mode 100644 index 0000000..80dd13c --- /dev/null +++ b/Tests/Visibility/verify.cmake @@ -0,0 +1,14 @@ +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() |