Skip to content

Commit

Permalink
Fix cmake version check syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
revmischa committed Dec 18, 2024
1 parent d78a508 commit 8b97a3d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,10 @@ project(gstprojectm VERSION 0.0.1)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")

find_package(projectM4 REQUIRED)
find_package(projectM4 4.1.0...<5.0.0 REQUIRED)
find_package(GStreamer REQUIRED COMPONENTS gstreamer-audio gstreamer-gl gstreamer-pbutils gstreamer-video)
find_package(GLIB2 REQUIRED)

if(projectM4_VERSION VERSION_LESS 4.2.0)
# needed for timekeeper API
message(FATAL_ERROR "libprojectM version 4.2.0 or higher is required. Version found: ${projectM4_VERSION}.")
endif()

add_library(gstprojectm SHARED
src/caps.h
src/caps.c
Expand Down Expand Up @@ -75,4 +70,4 @@ target_link_libraries(gstprojectm
${GSTREAMER_PBUTILS_LIBRARIES}
${GLIB2_LIBRARIES}
${GLIB2_GOBJECT_LIBRARIES}
)
)

0 comments on commit 8b97a3d

Please sign in to comment.