diff --git a/CMakeLists.txt b/CMakeLists.txt index 46aaf91..f5ed199 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,5 +40,6 @@ endif() if(UNIX OR MSYS) target_link_libraries(eupplay PRIVATE stdc++ ${SDL2_LIBRARIES}) target_include_directories(eupplay PUBLIC ${SDL2_INCLUDE_DIRS}) - target_compile_options(eupplay PUBLIC ${SDL2_FLAGS_OTHERS}) + target_compile_options(eupplay PUBLIC ${SDL2_CFLAGS} ${SDL2_CFLAGS_OTHERS}) + target_link_options(eupplay PUBLIC ${SDL2_LDFLAGS} ${SDL2_LDFLAGS_OTHERS}) endif()