cmake gupnp detection fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Noise |
Fix Released
|
Medium
|
Pim Vullers |
Bug Description
When trying to build noise I get the following error:
-- checking for module 'gupnp-1.0'
-- found gupnp-1.0, version 0.18.3
-- UPnP Plugin enabled
-- checking for module 'gupnp-av-1.0'
-- package 'gupnp-av-1.0' not found
-- UPnP Plugin disabled
...
-- GSettings schemas will be installed locally.
-- GSettings schemas will be installed into /usr/share/
CMake Error at plugins/
if given arguments:
"1" "AND"
Unknown arguments specified
-- Configuring incomplete, errors occurred!
The corresponding part is (plugins/
if (${GUPNP_FOUND} AND ${GUPNP_AV_FOUND})
add_subdirectory (UPnP)
endif()
These variables are set here (CMakeLists.txt):
pkg_check_
if(${GUPNP_FOUND})
set(ADD_PKG ${ADD_PKG}
gupnp-1.0)
set(ADD_OPTIONS ${ADD_OPTIONS})
message("-- UPnP Plugin enabled")
else()
message("-- UPnP Plugin disabled")
endif()
pkg_check_
if(${GUPNP_
set(ADD_PKG ${ADD_PKG}
set(ADD_OPTIONS ${ADD_OPTIONS})
message("-- UPnP Plugin enabled")
else()
message("-- UPnP Plugin disabled")
endif()
My guess is that either the check should be improved, or in the else clauses the variables should be set to "0".
Related branches
- Victor Martinez (community): Approve
-
Diff: 19 lines (+2/-0)1 file modifiedCMakeLists.txt (+2/-0)
Changed in noise: | |
status: | New → Fix Committed |
assignee: | nobody → Pim Vullers (pimvullers) |
Changed in noise: | |
importance: | Undecided → Medium |
milestone: | none → luna-beta1 |
Changed in noise: | |
status: | Fix Committed → Fix Released |
The linked branch solves the issue by explicitly setting the variables to '0' if the related modules are not found.