File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ if(MOVIE_SUPPORT)
2121 find_package (FFmpeg COMPONENTS avcodec avformat avutil swscale )
2222endif ()
2323find_package (PhysFS REQUIRED )
24- find_package (SFML 2.5 COMPONENTS audio graphics REQUIRED )
24+ find_package (SFML 2.6 COMPONENTS audio graphics REQUIRED )
2525
2626include_directories (src )
2727
Original file line number Diff line number Diff line change @@ -449,6 +449,7 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
449449 message (FATAL_ERROR "GCC version must be at least 11.1!" )
450450 endif ()
451451 target_compile_options (${PROJECT_NAME } PRIVATE -Wall -Wpedantic )
452+ target_link_libraries (${PROJECT_NAME } -lm -ldl )
452453elseif (CMAKE_CXX_COMPILER_ID MATCHES "MSVC" )
453454 target_compile_options (${PROJECT_NAME } PRIVATE /GF /EHsc /W3 /wd4250 /wd4996 )
454455 target_link_options (${PROJECT_NAME } PRIVATE /OPT:ICF /OPT:REF )
You can’t perform that action at this time.
0 commit comments