Skip to content

Commit

Permalink
make conflicting options an error
Browse files Browse the repository at this point in the history
  • Loading branch information
Neumann-A committed Jul 12, 2022
1 parent 72ce1e8 commit 5e2d82e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/cmake/vcpkg_configure_make.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ function(vcpkg_configure_make)
message(WARNING "${CMAKE_CURRENT_FUNCTION} was passed extra arguments: ${arg_UNPARSED_ARGUMENTS}")
endif()

if(DEFINED arg_USE_WRAPPERS AND DEFINED arg_NO_WRAPPERS)
message(FATAL_ERROR "${CMAKE_CURRENT_FUNCTION} was passed conflicting options USE_WRAPPERS and NO_WRAPPERS. Please remove one of them!")
endif()

z_vcpkg_get_cmake_vars(cmake_vars_file)
debug_message("Including cmake vars from: ${cmake_vars_file}")
include("${cmake_vars_file}")
Expand Down

0 comments on commit 5e2d82e

Please sign in to comment.