From 3d9619790d7a548cae973d72e7ce112477548e91 Mon Sep 17 00:00:00 2001 From: Edwin Zhang Date: Fri, 7 May 2021 17:54:59 -0400 Subject: [PATCH] Fix OPEN_FOR_IDE option for cmake --- bindings/CMakeLists.txt | 2 +- tests/CMakeLists.txt | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/bindings/CMakeLists.txt b/bindings/CMakeLists.txt index e363695ac2..378ea504b1 100644 --- a/bindings/CMakeLists.txt +++ b/bindings/CMakeLists.txt @@ -1,6 +1,6 @@ -add_subdirectory(c) if(NOT OPEN_FOR_IDE) # flow bindings currently doesn't support that + add_subdirectory(c) add_subdirectory(flow) endif() add_subdirectory(python) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 94203e109a..23df5095db 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -263,10 +263,12 @@ if(WITH_PYTHON) add_fdb_test(TEST_FILES status/separate_not_enough_servers.txt) add_fdb_test(TEST_FILES status/single_process_too_many_config_params.txt) - add_test( - NAME multiversion_client/unit_tests - COMMAND $ -r unittests -f /fdbclient/multiversionclient/ - ) + if(NOT OPEN_FOR_IDE) + add_test( + NAME multiversion_client/unit_tests + COMMAND $ -r unittests -f /fdbclient/multiversionclient/ + ) + endif() verify_testing() if (NOT OPEN_FOR_IDE AND NOT WIN32)