aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/deps
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/deps')
-rw-r--r--host/lib/deps/CMakeLists.txt6
-rw-r--r--host/lib/deps/rpc_CMakeLists.txt34
-rw-r--r--host/lib/deps/rpclib/CMakeLists.txt34
3 files changed, 37 insertions, 37 deletions
diff --git a/host/lib/deps/CMakeLists.txt b/host/lib/deps/CMakeLists.txt
index a3858bad8..6e171efea 100644
--- a/host/lib/deps/CMakeLists.txt
+++ b/host/lib/deps/CMakeLists.txt
@@ -4,6 +4,6 @@
# SPDX-License-Identifier: GPL-3.0
#
-IF(ENABLE_MPMD)
- ADD_SUBDIRECTORY(rpclib)
-ENDIF()
+if(ENABLE_MPMD)
+ add_subdirectory(rpclib)
+endif()
diff --git a/host/lib/deps/rpc_CMakeLists.txt b/host/lib/deps/rpc_CMakeLists.txt
index c8cb322da..ef28dbaf1 100644
--- a/host/lib/deps/rpc_CMakeLists.txt
+++ b/host/lib/deps/rpc_CMakeLists.txt
@@ -1,26 +1,26 @@
-PROJECT(UHD_RPCLIB CXX)
+project(UHD_RPCLIB CXX)
-SET(RPCLIB_DEFAULT_BUFFER_SIZE "1024 << 10" CACHE STRING "Default buffer size")
+set(RPCLIB_DEFAULT_BUFFER_SIZE "1024 << 10" CACHE STRING "Default buffer size")
-SET(RPCLIB_VERSION_MAJOR ${rpclib_major_version})
-SET(RPCLIB_VERSION_MINOR ${rpclib_minor_version})
-SET(RPCLIB_VERSION_PATCH ${rpclib_patch_version})
+set(RPCLIB_VERSION_MAJOR ${rpclib_major_version})
+set(RPCLIB_VERSION_MINOR ${rpclib_minor_version})
+set(RPCLIB_VERSION_PATCH ${rpclib_patch_version})
-CONFIGURE_FILE(
+configure_file(
${"${CMAKE_CURRENT_SOURCE_DIR}/include/rpc/version.h.in"}
${"${CMAKE_CURRENT_BINARY_DIR}/version.h"})
-CONFIGURE_FILE(
+configure_file(
${"${CMAKE_CURRENT_SOURCE_DIR}/include/rpc/config.h.in"}
${"${CMAKE_CURRENT_BINARY_DIR}/config.h"})
-SET(RPCLIB_COMPILE_DEFINITIONS "")
-IF(${"${CMAKE_CXX_COMPILER_ID}"} MATCHES "Clang")
+set(RPCLIB_COMPILE_DEFINITIONS "")
+if(${"${CMAKE_CXX_COMPILER_ID}"} MATCHES "Clang")
-ELSEIF(${"${CMAKE_CXX_COMPILER_ID}"} STREQUAL "GNU")
+elseif(${"${CMAKE_CXX_COMPILER_ID}"} STREQUAL "GNU")
-ELSEIF(${"${CMAKE_CXX_COMPILER_ID}"} STREQUAL "MSVC")
- SET(RPCLIB_COMPILE_DEFINITIONS
+elseif(${"${CMAKE_CXX_COMPILER_ID}"} STREQUAL "MSVC")
+ set(RPCLIB_COMPILE_DEFINITIONS
"${"${RPCLIB_COMPILE_DEFINITIONS}"}"
"WIN32_LEAN_AND_MEAN"
"NOMINMAX"
@@ -35,11 +35,11 @@ ELSEIF(${"${CMAKE_CXX_COMPILER_ID}"} STREQUAL "MSVC")
"ASIO_HAS_STD_SHARED_PTR"
"ASIO_HAS_STD_TYPE_TRAITS"
)
-ENDIF()
+endif()
-INCLUDE_DIRECTORIES(include)
-INCLUDE_DIRECTORIES(include/rpc)
-ADD_LIBRARY(uhd_rpclib OBJECT
+include_directories(include)
+include_directories(include/rpc)
+add_library(uhd_rpclib OBJECT
lib/rpc/dispatcher.cc
lib/rpc/server.cc
lib/rpc/client.cc
@@ -51,7 +51,7 @@ ADD_LIBRARY(uhd_rpclib OBJECT
lib/rpc/detail/response.cc
lib/rpc/detail/client_error.cc
)
-SET_TARGET_PROPERTIES(uhd_rpclib
+set_target_properties(uhd_rpclib
PROPERTIES
POSITION_INDEPENDENT_CODE ON
COMPILE_DEFINITIONS "${"${RPCLIB_COMPILE_DEFINITIONS}"}"
diff --git a/host/lib/deps/rpclib/CMakeLists.txt b/host/lib/deps/rpclib/CMakeLists.txt
index dd53fabe8..56c4865c4 100644
--- a/host/lib/deps/rpclib/CMakeLists.txt
+++ b/host/lib/deps/rpclib/CMakeLists.txt
@@ -1,26 +1,26 @@
-PROJECT(UHD_RPCLIB CXX)
+project(UHD_RPCLIB CXX)
-SET(RPCLIB_DEFAULT_BUFFER_SIZE "1024 << 10" CACHE STRING "Default buffer size")
+set(RPCLIB_DEFAULT_BUFFER_SIZE "1024 << 10" CACHE STRING "Default buffer size")
-SET(RPCLIB_VERISION_MAJOR 1)
-SET(RPCLIB_VERSION_MINOR 0)
-SET(RPCLIB_VERSION_PATCH 0)
+set(RPCLIB_VERISION_MAJOR 1)
+set(RPCLIB_VERSION_MINOR 0)
+set(RPCLIB_VERSION_PATCH 0)
-CONFIGURE_FILE(
+configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/include/rpc/version.h.in
${CMAKE_CURRENT_BINARY_DIR}/version.h)
-CONFIGURE_FILE(
+configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/include/rpc/config.h.in
${CMAKE_CURRENT_BINARY_DIR}/config.h)
-SET(RPCLIB_COMPILE_DEFINITIONS "")
-IF(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
+set(RPCLIB_COMPILE_DEFINITIONS "")
+if(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
-ELSEIF(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
+elseif(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
-ELSEIF(${CMAKE_CXX_COMPILER_ID} STREQUAL "MSVC")
- SET(RPCLIB_COMPILE_DEFINITIONS
+elseif(${CMAKE_CXX_COMPILER_ID} STREQUAL "MSVC")
+ set(RPCLIB_COMPILE_DEFINITIONS
"${RPCLIB_COMPILE_DEFINITIONS}"
"WIN32_LEAN_AND_MEAN"
"NOMINMAX"
@@ -35,11 +35,11 @@ ELSEIF(${CMAKE_CXX_COMPILER_ID} STREQUAL "MSVC")
"ASIO_HAS_STD_SHARED_PTR"
"ASIO_HAS_STD_TYPE_TRAITS"
)
-ENDIF()
+endif()
-INCLUDE_DIRECTORIES(include)
-INCLUDE_DIRECTORIES(include/rpc)
-ADD_LIBRARY(uhd_rpclib OBJECT
+include_directories(include)
+include_directories(include/rpc)
+add_library(uhd_rpclib OBJECT
lib/rpc/dispatcher.cc
lib/rpc/server.cc
lib/rpc/client.cc
@@ -51,7 +51,7 @@ ADD_LIBRARY(uhd_rpclib OBJECT
lib/rpc/detail/response.cc
lib/rpc/detail/client_error.cc
)
-SET_TARGET_PROPERTIES(uhd_rpclib
+set_target_properties(uhd_rpclib
PROPERTIES
POSITION_INDEPENDENT_CODE ON
COMPILE_DEFINITIONS "${RPCLIB_COMPILE_DEFINITIONS}"