Skip to content

Commit

Permalink
Fix VERSION_GREATER_EQUAL for CMAKE < v3.7
Browse files Browse the repository at this point in the history
VERSION_GREATER_EQUAL was introduced from CMAKE v3.7.
  • Loading branch information
komh committed Jul 26, 2021
1 parent bd6d3ad commit 1a0aef4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ else ()
set ( includedir "\${prefix}/${INCLUDE_INSTALL_DIR}" )
endif ()

if ( CMAKE_VERSION VERSION_GREATER_EQUAL "3.12.0" )
if ( CMAKE_VERSION VERSION_EQUAL "3.12.0" OR CMAKE_VERSION VERSION_GREATER "3.12.0" )
# retrieve all the private libs we depend on
get_target_property ( LIBS_PRIVATE libfluidsynth INTERFACE_LINK_LIBRARIES)
# make a copy
Expand All @@ -837,7 +837,7 @@ else ()
set ( LIBS_PRIVATE "" )
set ( LIBS_PRIVATE_WITH_PATH "" )
message ( DEPRECATION "Your version of CMake is old. A complete pkg-config file can not created. Get cmake 3.13.3 or newer." )
endif ( CMAKE_VERSION VERSION_GREATER_EQUAL "3.12.0" )
endif ( CMAKE_VERSION VERSION_EQUAL "3.12.0" OR CMAKE_VERSION VERSION_GREATER "3.12.0" )

configure_file ( fluidsynth.pc.in
${CMAKE_BINARY_DIR}/fluidsynth.pc IMMEDIATE @ONLY )
Expand Down

0 comments on commit 1a0aef4

Please sign in to comment.