aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2020-02-07 10:44:21 -0800
committermichael-west <michael.west@ettus.com>2020-05-05 12:48:02 -0700
commit9001241c56fda96e45323c9dd796c17fbfcb3939 (patch)
tree97522b06e751e8f4aa4cfc3165f3259a62a2724d
parentlib: utils: Don't use hard-coded path constants (diff)
downloaduhd-9001241c56fda96e45323c9dd796c17fbfcb3939.tar.xz
uhd-9001241c56fda96e45323c9dd796c17fbfcb3939.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.
-rw-r--r--mpm/lib/catalina/CMakeLists.txt13
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
)