mirror of
https://github.com/edubart/otclient.git
synced 2025-12-29 02:47:12 +01:00
Fix & enable by default static linking on macOS (#1133)
This commit is contained in:
@@ -43,6 +43,10 @@ set_target_properties(${PROJECT_NAME} PROPERTIES CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
target_link_libraries(${PROJECT_NAME} ${framework_LIBRARIES})
|
||||
|
||||
if(APPLE AND USE_STATIC_LIBS)
|
||||
target_link_libraries(${PROJECT_NAME} "-framework Foundation" "-framework IOKit")
|
||||
endif()
|
||||
|
||||
if(USE_PCH)
|
||||
include(cotire)
|
||||
cotire(${PROJECT_NAME})
|
||||
|
||||
Reference in New Issue
Block a user