https://github.com/Kitware/CMake
Revision 14170273fe9df493fa3d0867d980889d6d08e089 authored by Brad King on 26 February 2014, 14:41:41 UTC, committed by CMake Topic Stage on 26 February 2014, 14:41:41 UTC
0ea3aee8 MSVC: Add properties to configure compiler PDB files (#14763)

2 parent s 041ba1e + 0ea3aee
Raw File
Tip revision: 14170273fe9df493fa3d0867d980889d6d08e089 authored by Brad King on 26 February 2014, 14:41:41 UTC
Merge topic 'msvc-compiler-pdb-files'
Tip revision: 1417027
verify.cmake
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()
back to top