cmake/Tests/RunCMake/CommandLine/env-export-compile-commands-unset-check.cmake

4 lines
174 B
CMake
Raw Normal View History

2020-08-30 11:54:41 +02:00
if(EXISTS "${RunCMake_TEST_BINARY_DIR}/compile_commands.json")
set(RunCMake_TEST_FAILED "compile_commands.json generated with CMAKE_EXPORT_COMPILE_COMMANDS unset")
endif()