Skip to content
Snippets Groups Projects
Commit 9a58517d authored by Brad King's avatar Brad King
Browse files

Tests: Add case for Xcode per-config per-source COMPILE_FLAGS diagnostic

parent 1e4bb358
No related branches found
No related tags found
No related merge requests found
1
^CMake Error in CMakeLists.txt:
Xcode does not support per-config per-source COMPILE_FLAGS:
\$<\$<CONFIG:Debug>:-DMYDEBUG>
specified for source:
.*/Tests/RunCMake/XcodeProject/main.c$
enable_language(C)
add_executable(main main.c)
set_property(SOURCE main.c PROPERTY COMPILE_FLAGS "$<$<CONFIG:Debug>:-DMYDEBUG>")
......@@ -13,6 +13,8 @@ if (NOT XCODE_VERSION VERSION_LESS 6)
run_cmake(XcodePlatformFrameworks)
endif()
run_cmake(PerConfigPerSourceFlags)
# Use a single build tree for a few tests without cleaning.
if(NOT XCODE_VERSION VERSION_LESS 5)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment