mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-15 20:46:37 +08:00
Tests: Add case for Xcode per-config per-source COMPILE_FLAGS diagnostic
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
1
|
@@ -0,0 +1,8 @@
|
|||||||
|
^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$
|
@@ -0,0 +1,3 @@
|
|||||||
|
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)
|
run_cmake(XcodePlatformFrameworks)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
run_cmake(PerConfigPerSourceFlags)
|
||||||
|
|
||||||
# Use a single build tree for a few tests without cleaning.
|
# Use a single build tree for a few tests without cleaning.
|
||||||
|
|
||||||
if(NOT XCODE_VERSION VERSION_LESS 5)
|
if(NOT XCODE_VERSION VERSION_LESS 5)
|
||||||
|
Reference in New Issue
Block a user