CMake/Tests/RunCMake/XcodeProject/XcodePreserveObjcFlag.cmake

7 lines
217 B
CMake
Raw Normal View History

set(CMAKE_CONFIGURATION_TYPES "Release" CACHE INTERNAL "Supported configuration types")
project(XcodePreserveObjcFlag CXX)
add_library(foo STATIC foo.cpp)
set_target_properties(foo PROPERTIES COMPILE_OPTIONS -ObjC)