vcl: Only build vcl_ldpreload on Linux 89/40389/3
authorTom Jones <thj@freebsd.org>
Wed, 31 Jan 2024 09:42:37 +0000 (09:42 +0000)
committerTom Jones <thj@freebsd.org>
Tue, 19 Mar 2024 15:21:05 +0000 (15:21 +0000)
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>
src/vcl/CMakeLists.txt

index 610b422..2f738f3 100644 (file)
 # 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
+)