summaryrefslogtreecommitdiff
path: root/cmake
Commit message (Collapse)AuthorAgeFilesLines
...
* network: build fixesNicholas Corgan2020-08-241-0/+1
| | | | | * Add missing Windows resource file * Include in component list in GnuradioConfig.cmake
* cmake: Add `-undefined dynamic_lookup` linker flag back for macOSSeeker2020-08-031-1/+6
| | | | | | | | | | | | | | For Homebrew, gnuradio is built against brewed Python 3.8. This means that GR will link against that Python. If later on the user has another Python 3 in their path, running `gnuradio` will fail with the `Abort Trap 6` error message. On Linux, you do not need this flag, as this is the default behaviour of the compiler. On Mac, you need to explicitly ask for dynamic lookup. This setting was removed in commit ab2fb35677e38a384df3f9503d1f45f64bbc0374 and this patch adds it back in.
* cmake: Add quotation marks around $PATH in GrTest.cmakeAndrej Rode2020-06-211-1/+1
| | | | | | | | | | | This quotes the SHELL variable in the resulting shell scripts for execute the tests in the correct environment and allows paths with spaces. Thanks to Daniel Estévez for reporting this and providing the correct fix. Closes #3560
* cmake: Remove FindSWIG from modules and don't check for itAndrej Rode2020-06-201-141/+0
| | | | | Remove the FindSWIG module and don't check for SWIG in the main CMakeLists
* pybind: remove docstring dependency on entire moduleJosh Morman2020-06-111-3/+3
| | | | | | | | | | When the module is used as a dependency for the docstring substitution task, any change to any file in the module will cause the regeneration of the bindings for the entire module and all modules that are dependent on that one. There is still probably a better way tie the docstring substitution into the custom commands, per file
* pybind11: update binding generation scriptsJosh Morman2020-06-041-0/+4
|
* pybind: add hash check to binding file creation (#3472)mormj2020-06-041-1/+171
|
* cmake: add GrPybind for making with pybind11Josh Morman2020-06-041-0/+106
|
* pybind: removal of swig componentsJosh Morman2020-06-046-859/+4
|
* gr-blocks/peak_detector: Remove UB on infinitiesThomas Habets2020-05-211-8/+0
| | | | | | | | | | | | | | | | | | | | This code fixes two issues: 1. The code used `::min()` in one place, and "minus infinity" in another, for the same purpose. 2. It used minus infinity on integer types, which is undefined behavior. (1) seems to have been accidentally left out of 9d9ea63c45b5f314eb344a69340ef49e8edafdfa. (2) Section 4.9: > The behavior is undefined if the truncated value cannot be > represented in the destination type. And trunc() on infinity is still infinity, which can't be represented in integer types.
* CMake/SWIG: Remove SWIG flag superfluous after 3.0.12, suppress warningMarcus Müller2020-04-111-1/+5
| | | | | | | | | SWIG complains about "Deprecated command line option: -modern. This option is now always on.". As traditional with SWIG, policy changes don't appear in any documentation; with a bit of git blaming, I found the change to have been introduced after SWIG 3.0.12.
* cmake: declare compatibility if newer than the requested versionClayton Smith2020-04-111-8/+8
| | | | | | | | | | | | | | | | | | | The GNU Radio 3.8 OOT Module Porting Guide recommends finding GNU Radio using find_package(Gnuradio "3.8" REQUIRED). GNU Radio's version check is currently strict, which prevents OOT modules from building against the master branch, which carries a version number of 3.9. To resolve this problem, I've modified the check to indicate that the GNU Radio version is compatible with the requested version so long as it is greater than or equal to the requested version. If an OOT module knows that it is incompatible with GNU Radio 3.9, it can use find_package(Gnuradio "3.8" EXACT REQUIRED) to prevent building with versions other than 3.8. The version check was copied from the CMake wiki: https://gitlab.kitware.com/cmake/community/-/wikis/doc/tutorials/How-to-create-a-ProjectConfig.cmake-file#the-foobarfoobarconfigversioncmakein-file
* cmake: GrPython: Auto-import LooseVersion into module check macroMartin Braun2020-03-301-0/+1
| | | | | GR_PYTHON_CHECK_MODULE() often needs to check versions of modulues, so we auto-import LooseVersion to maket that easier.
* Update license header to SPDX formatdevnulling2020-01-2715-195/+15
|
* Disable Python 2kMarcus Müller2020-01-042-12/+3
| | | | | | | | | | - Update SWIG settings - Update CMake - Remove Python2 references Note: This does not touch a lot of Python files, and many Python files will still work with Python 2 after this commit. However, we won't allow that in our CMake, and the support will be gone too.
* docs: Remove the sphinx manualMarc L2020-01-021-37/+0
| | | | | Going forward, everything manual-related will be consolidated into the Doxygen manual, or the wiki.
* cmake: workaround find_dependency bugBastian Bloessl2020-01-031-1/+1
|
* Use raw strings for paths substituted directly into python strings.Ryan Volz2020-01-021-2/+2
|
* cmake: Use standard way of getting python prefixSylvain Munaut2020-01-011-6/+2
| | | | | | | | | | Fixes #2006 This is exactly the same logic as is used in volk. Also the same logic used for the GR_PYTHON_RELATIVE just below ... so if it works for those on all OSes/config, no reasons it won't work here. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* cmake: add boost 1.71 as acceptable versionJosh Morman2020-01-011-2/+4
|
* Fix typo in Log4Cpp cmake filejapm482019-12-201-1/+1
|
* GnuradioConfig.cmake.in: honour OOT ENABLE_TESTING if it set, use default if ↵Gwenhael Goavec-Merou2019-12-191-1/+3
| | | | it not
* cmake:Modules:GnuradioConfig.cmake.in: add unit_test_framework only when ↵Gwenhael Goavec-Merou2019-12-191-3/+11
| | | | ENABLE_TESTING is ON
* add boost unit_test_framework required only when ENABLE_TESTING=ONGwenhael Goavec-Merou2019-12-191-1/+4
|
* codec2: fix support for codec2 version < 0.8Davide Gerhard2019-11-051-0/+12
| | | | | | | | | codec2 version < 0.8 doesn't provide codec2/version.h header therefore cmake discovers if it is available. fix gr-vocoder build on ubuntu < 19.04 and debian < 10 Closes: https://github.com/gnuradio/gnuradio/pull/2858#issuecomment-549391165
* FindLOG4CPP: canonical path orderingMarcus Müller2019-09-291-3/+3
| | | | | | | | | | | That means: * /usr first, * /usr/local second, * /opt only as testament to the fact that there's hilariously non-standard installations. Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* Update log4cpp cmake module to search in lib64 directories.Philip Balister2019-09-291-1/+1
| | | | Signed-off-by: Philip Balister <philip@balister.org>
* Fix typo that creates build issues with GR dependenciesEmmanuel Blot2019-08-261-1/+1
|
* Added qwt name in FindQwt.cmake necessary in some Linux DistrosJan Kraemer2019-08-231-1/+1
|
* Tree: clang-format without the include sortingMarcus Müller2019-08-092-11/+20
|
* modtool: put proper quotes when unescaped shell pathsJosh Morman2019-07-191-3/+13
| | | | | | | | | | Adds quotes to paths to prevent issues when the user has a space in their OOT shell paths Slight change to #2560 which should prevent CI from broadly failing Fixes #2443
* cmake: correct typo in FindLog4Cpp cmake moduleAndrej Rode2019-07-171-1/+1
| | | | | | | Fixes bug with empty error message on a failure to find Log4Cpp libraries. Closes #2599
* Add GR_PYTHON_RELATIVE to fix issue #2515 with runtime_swigTargets-release.cmakeToby Flynn2019-07-171-0/+13
| | | | | | | | | This commit fixes issue #2515. A new CMake variable, GR_PYTHON_RELATIVE is needed to properly create the CMake files used by OOTs when cross compiling or using sysroot based build systems see https://cmake.org/Bug/print_bug_page.php?bug_id=14367 for more information
* Fix for misc. documentation + trivial typosluz.paz2019-07-171-1/+1
| | | | | | | | | | | | | Found via `codespell -q 3 -L ans,sinc,hist,ist,ith,uint,fo -S ./volk` Fix typos in gnuradio-runtime/ Fix typos in gr-digital/ Fix typos in gr-qtgui/ Fix typos in gr-channels/ Fix typos in grc/ Fix typos gr-filter/ Fix typos in gr-uhd/ Fix typos in gr-blocks/ Fix typos in gr-fec/
* Purge gr-comedi and all references to it from mainline GNU RadioMarcus Müller2019-07-171-1/+0
| | | | | This includes the gr-comedi/ subdirectory, the build infrastructure and CMake modules referencing Comedi, and the documentation.
* Renaming the VERSION_INFO_* to VERSION_ macros consistent w/ VERSIONINGMarcus Müller2019-07-172-8/+8
|
* cmake: Allow custom library name to be supplied for FindZeroMQ modulegnieboer2019-06-161-1/+1
|
* CMake: Fixes error when both debug and release python libraries are installedgnieboer2019-06-151-4/+14
|
* cmake: fixed gsl definition add for windowsgnieboer2019-06-061-1/+1
|
* cmake: remove branching for old CMake versionsAndrej Rode2019-05-231-7/+5
| | | | | Since only CMake 3.8 or greater is supported with this version of GNU radio conditionals for older CMake versions are not necessary anymore
* cmake: incorporate SO versioning from debian downstream patchesAndrej Rode2019-05-232-31/+2
|
* cmake: Export settings for OOTsAndrej Rode2019-03-232-10/+44
|\ | | | | | | Reduce CMake code duplication needed for a OOT. Used Python version and setting if GRC is enabled are now set in GnuradioConfig.cmake.
| * cmake: leave ENABLE_PYTHON and ENABLE_GRC user configurable by OOTsAndrej Rode2019-03-112-8/+9
| | | | | | | | | | | | | | | | Initialize Python before include gnuradio-runtime This allows to provide the GR_CHECK_PYTHON_MODULE function to be available before Thrift tries to use it. Consequently the include(GrPython) was removed from FindTHRIFT
| * cmake: use TargetConfig in GnuradioConfigAndrej Rode2019-03-101-5/+2
| | | | | | | | | | Previously only the Target.cmake was used. This lead to thrift not being added to the list of dependencies to call find_dependency() on.
| * GnuradioConfig/newmod: find Thrift if it was used by GNU Radio buildMarcus Müller2019-03-091-0/+3
| |
| * CMake: export global settings into GnuradioConfig.cmake.inMarcus Müller2019-03-091-1/+38
| | | | | | | | | | | | This includes setting the Python interpreter, various installation directories and the enabledness of specific non-CMake-visible components.
| * CMake: GnuradioConfig.cmake.in cleanup, copyright yearMarcus Müller2019-03-081-5/+1
| |
* | SWIG: Output SWIG source being parsed file during buildMarcus Müller2019-03-131-1/+1
|/ | | | | This is mainly beauty. It does come in handy when one fiddles with the SWIGs too much and needs to figure out which .i broke.
* Modern CMake: Remove obsolete FindGnuradio scriptMarcus Müller2019-03-071-118/+0
| | | | | | This has been superseeded by GnuradioConfig.cmake. Credits go to Jaroslav Skarvada and Andrej Rode for figuring this out.
* newmod: update templates for new target syntaxAndrej Rode2019-03-041-3/+3
|