Skip to content

Commit

Permalink
Use '__only_one_of' command to check passed arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
tsayukov committed Sep 20, 2024
1 parent 8a8fb8b commit 537b14a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions common/Project.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -497,13 +497,7 @@ function(set_project_target_property target)
PROPERTY
PROJECT_PROPERTY
)

__xor("${ARGS_PROPERTY}" "${ARGS_PROJECT_PROPERTY}")
if (NOT __xor_result)
message(FATAL_ERROR
"`PROPERTY` and `PROJECT_PROPERTY` are mutually exclusive options."
)
endif()
__only_one_of(ARGS_PROPERTY ARGS_PROJECT_PROPERTY)

if (ARGS_PROPERTY)
__get_key_value(ARGS_PROPERTY)
Expand Down

0 comments on commit 537b14a

Please sign in to comment.