Bug#987700: bornagain: buggy cmake file
Yangfl
mmyangfl at gmail.com
Wed Apr 28 05:07:24 BST 2021
Source: bornagain
Tags: patch
Hi,
cmake/BornAgain/Linux.cmake currently has the following lines:
execute_process(COMMAND uname -m OUTPUT_VARIABLE SYSCTL_OUTPUT)
if(${SYSCTL_OUTPUT} MATCHES x86_64)
message(STATUS "Found a 64bit system")
set(BIT_ENVIRONMENT "-m64")
set(BORNAGAIN_ARCHITECTURE linuxx8664)
else()
message(STATUS "Found a 32bit system")
set(BIT_ENVIRONMENT "-m32")
add_definitions(-DEIGEN_DONT_ALIGN_STATICALLY=1)
endif()
This has the following affects:
* It stops cross building since it reads build's `uname`.
* It stops building for most non-amd64 64-bit archs since it doesn't
recognize them as 64-bit archs.
* It stops building for most non-i386 archs since they don't accept `-m32`.
Please consider applying this patch.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bornagain-cmake.patch
Type: text/x-patch
Size: 775 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20210428/23021560/attachment.bin>
More information about the debian-science-maintainers
mailing list