mirror of
https://github.com/transmission/transmission
synced 2025-01-31 03:12:44 +00:00
Enable ARC when configuring the project via CMake
This commit is contained in:
parent
18e33c5cdb
commit
55edcf22e5
1 changed files with 6 additions and 0 deletions
|
@ -1,5 +1,11 @@
|
|||
project(trmac)
|
||||
|
||||
if(CMAKE_GENERATOR STREQUAL "Xcode")
|
||||
set(CMAKE_XCODE_ATTRIBUTE_CLANG_ENABLE_OBJC_ARC ON)
|
||||
else()
|
||||
add_definitions(-fobjc-arc)
|
||||
endif()
|
||||
|
||||
find_program(IBTOOL_EXECUTABLE ibtool REQUIRED)
|
||||
find_program(TIFFUTIL_EXECUTABLE tiffutil REQUIRED)
|
||||
find_program(INSTALL_NAME_TOOL_EXECUTABLE install_name_tool REQUIRED)
|
||||
|
|
Loading…
Reference in a new issue