mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-20 13:19:07 -04:00
fixed using the right version of cmake > 3.5
This commit is contained in:
parent
c3640306bd
commit
ef25a9079d
1 changed files with 12 additions and 0 deletions
|
@ -520,6 +520,18 @@ trough qmake command line arguments!")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Some supportlibs compilation won't start if the intstalled CMAKE verison is >=3.5.
|
||||||
|
# Force compilation in that case
|
||||||
|
CMAKE_FORCE_MINVERSION=""
|
||||||
|
CMAKE_VERSION_SPLIT = $$system(cmake --version)
|
||||||
|
CMAKE_VERSION_SPLIT = $$split(CMAKE_VERSION_SPLIT, \\s+)
|
||||||
|
CMAKE_VERSION = $$member(CMAKE_VERSION_SPLIT, 2)
|
||||||
|
message("Cmake version detected: $${CMAKE_VERSION}")
|
||||||
|
versionAtLeast(CMAKE_VERSION, 3.5) {
|
||||||
|
warning("Forcing compilation with CMAKE_POLICY_VERSION_MINIMUM=3.5")
|
||||||
|
CMAKE_FORCE_MINVERSION="-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
|
||||||
|
}
|
||||||
|
|
||||||
gxsdistsync:DEFINES *= RS_USE_GXS_DISTANT_SYNC
|
gxsdistsync:DEFINES *= RS_USE_GXS_DISTANT_SYNC
|
||||||
wikipoos:DEFINES *= RS_USE_WIKI
|
wikipoos:DEFINES *= RS_USE_WIKI
|
||||||
rs_gxs:DEFINES *= RS_ENABLE_GXS
|
rs_gxs:DEFINES *= RS_ENABLE_GXS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue