mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 03:39:43 -06:00
For policy-specific tests, use the version before the policy was introduced. Otherwise, use 3.5 where possible. Also, remove `cmake_minimum_required()` and `project()` calls from individual cases where they are handled by `CMakeLists.txt`.
10 lines
423 B
CMake
10 lines
423 B
CMake
enable_language(C)
|
|
|
|
set(CMAKE_XCODE_XCCONFIG "$<IF:$<CONFIG:Debug>,XcodeXCConfig.global.debug.xcconfig,XcodeXCConfig.global.release.xcconfig>")
|
|
|
|
add_library(somelib XcodeXCConfig.c)
|
|
target_compile_definitions(somelib PUBLIC "BUILD_DEBUG=$<IF:$<CONFIG:Debug>,1,0>")
|
|
set_target_properties(somelib PROPERTIES
|
|
XCODE_XCCONFIG "$<IF:$<CONFIG:Debug>,XcodeXCConfig.target.debug.xcconfig,XcodeXCConfig.target.release.xcconfig>"
|
|
)
|