1
0
Fork 0
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:
Mike Gelfand 2017-08-02 07:12:31 +03:00
parent 18e33c5cdb
commit 55edcf22e5

View file

@ -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)