Skip to content

Commit

Permalink
Fix breakages with latest SFML commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisThrasher committed Dec 6, 2024
1 parent 8139272 commit 7119b71
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ project(mandelbrot CXX)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)

include(FetchContent)
set(SFML_BUILD_NETWORK OFF)
FetchContent_Declare(SFML GIT_REPOSITORY https://github.com/SFML/SFML.git)
FetchContent_MakeAvailable(SFML)

if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
add_compile_options(-ffast-math -Werror -Wall -Wextra -Wpedantic -Wshadow -Wconversion -Wsign-conversion -Wold-style-cast)
elseif(MSVC)
add_compile_options(/WX /W4 /permissive-)
endif()

include(FetchContent)
set(SFML_BUILD_NETWORK OFF)
FetchContent_Declare(SFML GIT_REPOSITORY https://github.com/SFML/SFML.git GIT_TAG ae87def93e7b0280b5826b0fa5e1a8ef7156e9e7)
FetchContent_MakeAvailable(SFML)

add_executable(mandelbrot src/Mandelbrot.cpp)
target_link_libraries(mandelbrot PRIVATE SFML::Graphics SFML::Audio Threads::Threads)

Expand Down

0 comments on commit 7119b71

Please sign in to comment.