From 74c20c37b79790737d0940bb5705b41421f953b6 Mon Sep 17 00:00:00 2001 From: Andrey Date: Sun, 4 Dec 2022 18:30:23 +0300 Subject: [PATCH] picloud_test build fix --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2c4ad3df..30b278e4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -492,8 +492,10 @@ if (NOT CROSSTOOLS) #target_link_libraries(pip_plugin pip) add_executable(pip_test "main.cpp") target_link_libraries(pip_test pip) - add_executable(pip_cloud_test "main_picloud_test.cpp") - target_link_libraries(pip_cloud_test pip_cloud) + if(sodium_FOUND) + add_executable(pip_cloud_test "main_picloud_test.cpp") + target_link_libraries(pip_cloud_test pip_cloud) + endif() endif() else()