diff --git a/cmake/Macros.cmake b/cmake/Macros.cmake index 77a7d11e..65f6977a 100644 --- a/cmake/Macros.cmake +++ b/cmake/Macros.cmake @@ -20,13 +20,8 @@ function(sfml_set_stdlib target) endif() endif() - if (SFML_OS_MACOSX) - if (${CMAKE_GENERATOR} MATCHES "Xcode") - sfml_set_xcode_property(${target} CLANG_CXX_LIBRARY "libc++") - else() - target_compile_options(${target} PRIVATE "-stdlib=libc++") - target_link_libraries(${target} PRIVATE "-stdlib=libc++") - endif() + if(${CMAKE_GENERATOR} MATCHES "Xcode") + sfml_set_xcode_property(${target} CLANG_CXX_LIBRARY "libc++") endif() endfunction()