mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-25 15:49:08 -05:00
7050ac56a1
Issue: #21752
13 lines
372 B
CMake
13 lines
372 B
CMake
enable_language(C)
|
|
|
|
if(CMAKE_SYSTEM_NAME STREQUAL "iOS")
|
|
set(CMAKE_XCODE_ATTRIBUTE_ENABLE_BITCODE "NO")
|
|
endif()
|
|
|
|
if(CMAKE_SYSTEM_NAME STREQUAL "tvOS" OR CMAKE_SYSTEM_NAME STREQUAL "watchOS" OR CMAKE_SYSTEM_NAME STREQUAL "visionOS")
|
|
set(CMAKE_XCODE_ATTRIBUTE_ENABLE_BITCODE "YES")
|
|
endif()
|
|
|
|
add_library(mylib STATIC mylib/mylib.c)
|
|
install(TARGETS mylib DESTINATION lib)
|