I installed sfml with home-brew, but I use CLION, not XCODE, and it just works for me, here is one of my cmake files
cmake_minimum_required(VERSION 3.25)
project(sfmlDemo02)
set(CMAKE_CXX_STANDARD 23)
add_executable(sfmlDemo main.cpp)
include_directories(/usr/local/include)
find_package(SFML 2.5 COMPONENTS system window graphics network audio REQUIRED)
include_directories(${SFML_INCLUDE_DIRS})
target_link_libraries(sfmlDemo sfml-system sfml-window sfml-graphics sfml-audio sfml-network)
Post
Replies
Boosts
Views
Activity
I have the same problem, no luck fixing it so far