Skip to content

Commit

Permalink
Properly enable CMAKE_COMPILE_WARNING_AS_ERROR_DEFAULT
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-lavrenov committed Sep 13, 2023
1 parent 4ca3d51 commit 285cef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/developer_package/features.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ else()
ie_option(USE_BUILD_TYPE_SUBFOLDER "Create dedicated sub-folder per build type for output binaries" ON)
endif()

if(CI_BUILD_NUMBER)
if(DEFINED ENV{CI_BUILD_NUMBER})
set(CMAKE_COMPILE_WARNING_AS_ERROR_DEFAULT ON)
else()
set(CMAKE_COMPILE_WARNING_AS_ERROR_DEFAULT OFF)
Expand Down

0 comments on commit 285cef7

Please sign in to comment.