mirror of
https://github.com/SFML/SFML.git
synced 2024-11-24 20:31:05 +08:00
Fix CMake formatting
This commit is contained in:
parent
79cd91124a
commit
bdf676aec1
@ -13,7 +13,7 @@ endfunction()
|
|||||||
|
|
||||||
# This little macro lets you set any Xcode specific property
|
# This little macro lets you set any Xcode specific property
|
||||||
macro(sfml_set_xcode_property TARGET XCODE_PROPERTY XCODE_VALUE)
|
macro(sfml_set_xcode_property TARGET XCODE_PROPERTY XCODE_VALUE)
|
||||||
set_property (TARGET ${TARGET} PROPERTY XCODE_ATTRIBUTE_${XCODE_PROPERTY} ${XCODE_VALUE})
|
set_property(TARGET ${TARGET} PROPERTY XCODE_ATTRIBUTE_${XCODE_PROPERTY} ${XCODE_VALUE})
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
# set the appropriate standard library on each platform for the given target
|
# set the appropriate standard library on each platform for the given target
|
||||||
|
@ -286,7 +286,7 @@ target_include_directories(sfml-window SYSTEM PRIVATE "${PROJECT_SOURCE_DIR}/ext
|
|||||||
|
|
||||||
# When static linking on macOS, we need to add this flag for objective C to work
|
# When static linking on macOS, we need to add this flag for objective C to work
|
||||||
# https://developer.apple.com/library/archive/qa/qa1490/_index.html
|
# https://developer.apple.com/library/archive/qa/qa1490/_index.html
|
||||||
if ((NOT BUILD_SHARED_LIBS) AND SFML_OS_MACOS)
|
if((NOT BUILD_SHARED_LIBS) AND SFML_OS_MACOS)
|
||||||
target_link_libraries(sfml-window PRIVATE -ObjC)
|
target_link_libraries(sfml-window PRIVATE -ObjC)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user