mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 17:35:37 -04:00
[partition] [fsresizer] Fix KPMCore API detection
- There will be a 3.3.1 which still has the "old" API, so look at 3.3.80 (pre-4.0) instead. Make the way compile flags are passed consistent.
This commit is contained in:
parent
9917bc27fc
commit
9159761171
2 changed files with 7 additions and 4 deletions
|
@ -27,8 +27,8 @@ set_package_properties(
|
|||
)
|
||||
|
||||
if ( KPMcore_FOUND )
|
||||
if ( KPMcore_VERSION VERSION_GREATER "3.3.0")
|
||||
add_definitions(-DWITH_KPMCOREGT33) # kpmcore greater than 3.3
|
||||
if ( KPMcore_VERSION VERSION_GREATER "3.90")
|
||||
list( APPEND _partition_defs WITH_KPMCORE4API) # kpmcore 4 with new API
|
||||
endif()
|
||||
|
||||
include_directories( ${KPMCORE_INCLUDE_DIR} )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue