Skip to content

Commit 7753711

Browse files
committed
Error if unsupported arguments are provided
1 parent 2b8d9b4 commit 7753711

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ function(packageProject)
1717
${ARGN}
1818
)
1919

20+
if(DEFINED PROJECT_UNPARSED_ARGUMENTS)
21+
message(FATAL_ERROR "Unknown arguments '${PROJECT_UNPARSED_ARGUMENTS}' in packageProject")
22+
endif()
23+
2024
# optional feature: TRUE or FALSE or UNDEFINED! These variables will then hold the respective
2125
# value from the argument list or be undefined if the associated one_value_keyword could not be
2226
# found.

0 commit comments

Comments
 (0)