diff options
author | Philip Balister <philip@balister.org> | 2015-12-28 17:15:55 -0500 |
---|---|---|
committer | Philip Balister <philip@balister.org> | 2015-12-28 17:15:55 -0500 |
commit | dec480ab3f0809677ba3ef2a3a64d402d742b5ec (patch) | |
tree | 518fa54a3fd220f6b84bab87e31ceb5260364ab1 /cmake | |
parent | 815a7cf32e7436876f14ad4a8f6b0b6e8bbaacf6 (diff) |
Fix 64 bit OpenEmbedded builds.
GNU Radio is looking at files on the build system to determine if it should
use the lib64 directory. This doesn't work on cross builds. Do not set
REDHAT, DEBIAN, or SLACKWARE if cross compiling.
Also fix gr-newmod so modules do the right thing.
Signed-off-by: Philip Balister <philip@balister.org>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/Modules/GrPlatform.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmake/Modules/GrPlatform.cmake b/cmake/Modules/GrPlatform.cmake index 5b7e886f85..fbbea5fee0 100644 --- a/cmake/Modules/GrPlatform.cmake +++ b/cmake/Modules/GrPlatform.cmake @@ -29,15 +29,15 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux") set(LINUX TRUE) endif() -if(LINUX AND EXISTS "/etc/debian_version") +if(NOT CMAKE_CROSSCOMPILING AND LINUX AND EXISTS "/etc/debian_version") set(DEBIAN TRUE) endif() -if(LINUX AND EXISTS "/etc/redhat-release") +if(NOT CMAKE_CROSSCOMPILING AND LINUX AND EXISTS "/etc/redhat-release") set(REDHAT TRUE) endif() -if(LINUX AND EXISTS "/etc/slackware-version") +if(NOT CMAKE_CROSSCOMPILING AND LINUX AND EXISTS "/etc/slackware-version") set(SLACKWARE TRUE) endif() |