aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Jones <thj@freebsd.org>2024-01-31 09:42:37 +0000
committerTom Jones <thj@freebsd.org>2024-03-19 15:21:05 +0000
commit3076c69a9e99aa68e9d996cf5c4b60cdb8938b68 (patch)
tree280717908aacb1bb2d54a9d9e18aa9fd58f80a0a
parentac60efd523dbbda3952bf4052a5fbeda7cac0a60 (diff)
vcl: Only build vcl_ldpreload on Linux
vcl_ldpreload requires some additional porting for FreeBSD, until that can be completed only build on Linux. Type: improvement Change-Id: I9b0942114252a0c6241640d2e454861c2b5d4304 Signed-off-by: Tom Jones <thj@freebsd.org>
-rw-r--r--src/vcl/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/vcl/CMakeLists.txt b/src/vcl/CMakeLists.txt
index 610b422d113..2f738f39d1a 100644
--- a/src/vcl/CMakeLists.txt
+++ b/src/vcl/CMakeLists.txt
@@ -11,6 +11,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+if(NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
+ message(WARNING "-- vppcom is currently only support on Linux - disabled")
+ return()
+endif()
+
##############################################################################
# vppcom shared library
##############################################################################
@@ -50,4 +55,4 @@ add_vpp_headers(vcl
vppcom.h
vcl_locked.h
ldp_socket_wrapper.h
-) \ No newline at end of file
+)