diff --git a/cmake/Macros.cmake b/cmake/Macros.cmake index 501aecfa8..27c06019e 100644 --- a/cmake/Macros.cmake +++ b/cmake/Macros.cmake @@ -13,7 +13,7 @@ endfunction() # This little macro lets you set any Xcode specific property 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() # set the appropriate standard library on each platform for the given target diff --git a/src/SFML/Window/CMakeLists.txt b/src/SFML/Window/CMakeLists.txt index a37635133..f1f581536 100644 --- a/src/SFML/Window/CMakeLists.txt +++ b/src/SFML/Window/CMakeLists.txt @@ -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 # 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) endif()