MultiArchCross.cmake breaks ubuntuBSD
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cmake (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
debian/
if(NOT DEFINED CMAKE_SYSTEM_NAME)
if(
SET(
endif()
if(
SET(
endif()
endif()
However on Linux CMAKE_SYSTEM_NAME is not actually set because DEB_HOST_ARCH_OS equals linux (not linux-gnu), and the STREQUAL comparison fails. So no problem there :-)
On ubuntuBSD the comparison succeeds and this breaks things because setting CMAKE_SYSTEM_NAME forces cmake into cross-compiling mode (see how CMAKE_CROSSCOMP
So could you just remove the whole thing? You can use patch below:
Changed in cmake (Ubuntu): | |
importance: | Undecided → Medium |
Changed in cmake (Ubuntu): | |
status: | New → Fix Committed |
patch attached.
thanks!