Skip to content

Commit

Permalink
Allow enabling cpplint on Windows, fix Windows style after check (#4380)
Browse files Browse the repository at this point in the history
  • Loading branch information
sirzabek authored Feb 18, 2021
1 parent 312dfbe commit 2051fe2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions cmake/developer_package/features.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,13 @@ ie_option (BUILD_SHARED_LIBS "Build as a shared library" ON)

ie_dependent_option (ENABLE_FASTER_BUILD "Enable build features (PCH, UNITY) to speed up build time" OFF "CMAKE_VERSION VERSION_GREATER_EQUAL 3.16" OFF)

ie_dependent_option (ENABLE_CPPLINT "Enable cpplint checks during the build" ON "UNIX;NOT ANDROID" OFF)
if(NOT DEFINED ENABLE_CPPLINT)
ie_dependent_option (ENABLE_CPPLINT "Enable cpplint checks during the build" ON "UNIX;NOT ANDROID" OFF)
endif()

ie_dependent_option (ENABLE_CPPLINT_REPORT "Build cpplint report instead of failing the build" OFF "ENABLE_CPPLINT" OFF)
if(NOT DEFINED ENABLE_CPPLINT_REPORT)
ie_dependent_option (ENABLE_CPPLINT_REPORT "Build cpplint report instead of failing the build" OFF "ENABLE_CPPLINT" OFF)
endif()

ie_option (ENABLE_CLANG_FORMAT "Enable clang-format checks during the build" ON)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//

#include "details/ie_exception.hpp"
#include "details/ie_so_loader.h"
#include "file_utils.h"
Expand Down Expand Up @@ -204,7 +204,7 @@ class SharedObjectLoader::Impl {
ExcludeCurrentDirectoryW();
LoadPluginFromDirectoryW(pluginName);

if(!shared_object) {
if (!shared_object) {
shared_object = LoadLibraryW(pluginName);
}

Expand Down

0 comments on commit 2051fe2

Please sign in to comment.