Skip to content

Commit 8b97a3d

Browse files
committed
Fix cmake version check syntax
1 parent d78a508 commit 8b97a3d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

CMakeLists.txt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,10 @@ project(gstprojectm VERSION 0.0.1)
99

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

12-
find_package(projectM4 REQUIRED)
12+
find_package(projectM4 4.1.0...<5.0.0 REQUIRED)
1313
find_package(GStreamer REQUIRED COMPONENTS gstreamer-audio gstreamer-gl gstreamer-pbutils gstreamer-video)
1414
find_package(GLIB2 REQUIRED)
1515

16-
if(projectM4_VERSION VERSION_LESS 4.2.0)
17-
# needed for timekeeper API
18-
message(FATAL_ERROR "libprojectM version 4.2.0 or higher is required. Version found: ${projectM4_VERSION}.")
19-
endif()
20-
2116
add_library(gstprojectm SHARED
2217
src/caps.h
2318
src/caps.c
@@ -75,4 +70,4 @@ target_link_libraries(gstprojectm
7570
${GSTREAMER_PBUTILS_LIBRARIES}
7671
${GLIB2_LIBRARIES}
7772
${GLIB2_GOBJECT_LIBRARIES}
78-
)
73+
)

0 commit comments

Comments
 (0)