Skip to content

Commit 8e6fa5a

Browse files
author
litongjava
committed
update sdl_version.cpp
1 parent 6374279 commit 8e6fa5a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ project(whisper_cpp_server)
44
set(CMAKE_CXX_STANDARD 14)
55
# find SDL2 library
66
find_package(SDL2 CONFIG REQUIRED)
7+
message(STATUS "SDL2 include directories: ${SDL2_INCLUDE_DIRS}")
8+
message(STATUS "SDL2 libraries: ${SDL2_LIBRARIES}")
9+
710
include_directories(${SDL2_INCLUDE_DIRS})
811

912
add_executable(sdl_version sdl_version.cpp)
1013
target_link_libraries(sdl_version ${SDL2_LIBRARIES})
14+
1115
add_executable(stream_components stream_components.cpp)
1216
target_link_libraries(stream_components whisper ${SDL2_LIBRARIES})
1317

sdl_version.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include <iostream>
22
#include <SDL.h>
33

4-
int main() {
4+
int main(int argc, char *argv[]) {
55
SDL_version compiled;
66
SDL_version linked;
77

@@ -19,4 +19,4 @@ int main() {
1919
<< static_cast<int>(linked.patch) << std::endl;
2020

2121
return 0;
22-
}
22+
}

0 commit comments

Comments
 (0)