Skip to content

Commit cd4c951

Browse files
committed
Merge branch 'fix_build_windows' of https://github.com/valnoel/avTranscoder into fix_build_windows
2 parents a63de78 + 53c027d commit cd4c951

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

app/avplay/CMakeLists.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,24 @@ endif()
1313

1414
# Check GLUT
1515
find_package(GLUT)
16-
if(NOT GLUT_FOUND)
16+
17+
if(NOT GLUT_Xi_LIBRARY OR NOT GLUT_Xmu_LIBRARY)
18+
set(GLUT_FOUND FALSE)
19+
endif()
20+
21+
if(NOT GLUT_FOUND)
1722
message("GLUT not found, will not build avplay app.")
1823
return()
1924
endif()
2025

2126
# Build app
2227
include_directories(${AVTRANSCODER_SRC_PATH} ${FFMPEG_INCLUDE_DIR})
23-
include_directories( ${OPENGL_INCLUDE_DIRS} ${GLUT_INCLUDE_DIRS} )
28+
include_directories( ${OPENGL_INCLUDE_DIRS} ${GLUT_INCLUDE_DIR} )
2429

2530
file(GLOB AVPLAY_SRC_FILES "*.cpp" "*.hpp")
2631
add_executable(avplay ${AVPLAY_SRC_FILES})
2732
set_target_properties(avplay PROPERTIES VERSION ${AVTRANSCODER_VERSION})
28-
target_link_libraries(avplay avtranscoder-shared ${OPENGL_LIBRARIES} ${GLUT_LIBRARY})
33+
target_link_libraries(avplay avtranscoder-shared ${OPENGL_LIBRARIES} ${GLUT_LIBRARIES})
2934

3035
# Install app
3136
if(WIN32)

0 commit comments

Comments
 (0)