diff options
author | Martin Braun <martin.braun@ettus.com> | 2020-02-07 10:44:21 -0800 |
---|---|---|
committer | atrnati <54334261+atrnati@users.noreply.github.com> | 2020-02-10 10:19:26 -0600 |
commit | 414469abeb2cc0038ccb4157593414b9ebc93830 (patch) | |
tree | e04799568664643e091534a645e0279994bdec96 /mpm | |
parent | 883e6583608ba1993404b86613b2e5ef234d3df7 (diff) | |
download | uhd-414469abeb2cc0038ccb4157593414b9ebc93830.tar.gz uhd-414469abeb2cc0038ccb4157593414b9ebc93830.tar.bz2 uhd-414469abeb2cc0038ccb4157593414b9ebc93830.zip |
mpm: catalina: Add thread.cpp from UHD to included files
This avoids a linker error where set_thread_name and set_thread_priority
cannot be found.
Diffstat (limited to 'mpm')
-rw-r--r-- | mpm/lib/catalina/CMakeLists.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mpm/lib/catalina/CMakeLists.txt b/mpm/lib/catalina/CMakeLists.txt index 6f402f530..7780b738e 100644 --- a/mpm/lib/catalina/CMakeLists.txt +++ b/mpm/lib/catalina/CMakeLists.txt @@ -19,6 +19,18 @@ set (CMAKE_CATALINA_SOURCE_DIR ) ######################################################################## +# Setup defines for process scheduling (needed for thread.cpp) +######################################################################## + +message(STATUS " Priority scheduling disabled.") +set(THREAD_PRIO_DEFS HAVE_THREAD_PRIO_DUMMY) + +set_source_files_properties( + ${UHD_HOST_ROOT}/lib/utils/thread.cpp + PROPERTIES COMPILE_DEFINITIONS "${THREAD_PRIO_DEFS}" +) + +######################################################################## # Setup UHD_VERSION and UHD_COMPONENT for version.cpp ######################################################################## configure_file( @@ -41,6 +53,7 @@ set(catalina_sources ${UHD_HOST_ROOT}/lib/types/serial.cpp ${UHD_HOST_ROOT}/lib/property_tree.cpp ${UHD_HOST_ROOT}/lib/utils/log.cpp + ${UHD_HOST_ROOT}/lib/utils/thread.cpp ${CMAKE_BINARY_DIR}/lib/version.cpp ) |