Skip to content

Commit 735fe41

Browse files
committed
Link TORQUE_LINK_FRAMEWORKS instead of -framework Cocoa
1 parent e8f6f91 commit 735fe41

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Engine/source/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ if (TORQUE_DYNAMIC_LIBRARY AND NOT TORQUE_TESTING)
373373
target_compile_definitions(TorqueEngine PUBLIC ${TORQUE_COMPILE_DEFINITIONS})
374374
target_link_libraries(TorqueEngine ${TORQUE_LINK_LIBRARIES})
375375
if (APPLE)
376-
target_link_libraries(TorqueEngine "-framework Cocoa")
376+
target_link_libraries(TorqueEngine ${TORQUE_LINK_FRAMEWORKS})
377377
endif (APPLE)
378378
target_include_directories(TorqueEngine PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} "${CMAKE_BINARY_DIR}/temp" ${TORQUE_INCLUDE_DIRECTORIES})
379379

0 commit comments

Comments
 (0)