mirror of
https://github.com/albfan/miraclecast.git
synced 2025-03-09 23:38:56 +00:00
update cmake minimum requirement from 2.8 to 3.0.2 due to usage of version comparasion of if command
check valac version to decide whether or not to use new Gdk.Monitor class
This commit is contained in:
parent
19d60ad66a
commit
b2fae367bf
3 changed files with 12 additions and 4 deletions
|
@ -17,10 +17,18 @@ find_library(READLINE REQUIRED)
|
|||
pkg_check_modules(GIO2 REQUIRED gio-2.0)
|
||||
pkg_check_modules(GDK3 REQUIRED gdk-3.0)
|
||||
|
||||
execute_process(COMMAND ${VALAC} --version
|
||||
OUTPUT_VARIABLE VALAC_VERSION
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
string(REPLACE "Vala " "" VALAC_VERSION "${VALAC_VERSION}")
|
||||
if(VALAC_VERSION VERSION_GREATER 0.34.0)
|
||||
list(APPEND VALA_EXTRA_OPTIONS -D VALA_VERSION_NEWER_THEN_0_34)
|
||||
endif()
|
||||
|
||||
execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --atleast-version 3.22 gdk-3.0
|
||||
RESULT_VARIABLE GDK_VERSION_NEWER_THEN_3_22)
|
||||
if(NOT GDK_VERSION_NEWER_THEN_3_22)
|
||||
set(VALA_EXTRA_OPTIONS -D GDK_VERSION_NEWER_THEN_3_22)
|
||||
list(APPEND VALA_EXTRA_OPTIONS -D GDK_VERSION_NEWER_THEN_3_22)
|
||||
endif()
|
||||
|
||||
set(RES_DIR ${CMAKE_CURRENT_SOURCE_DIR}/res)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue