Skip to content

Commit

Permalink
block "other" settings inputs when using lock files
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-chrismc authored Jan 9, 2021
1 parent c9ea159 commit 5cc18ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions conan.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,9 @@ function(conan_cmake_install)
set(CONANFILE ".")
endif()
if(ARGUMENTS_LOCKFILE)
if(ARGUMENTS_PROFILE OR ARGUMENTS_OPTIONS OR ARGUMENTS_SETTINGS)
message(FATAL_ERROR "Cannot mix LOCKFILE with other graph changing arguements")
endif()
if(IS_ABSOLUTE ${ARGUMENTS_LOCKFILE})
set(CONAN_LOCKFILE --lockfile=${ARGUMENTS_LOCKFILE})
else()
Expand Down

0 comments on commit 5cc18ea

Please sign in to comment.