-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Rename CMake KDBINDINGS_ENABLE_WARN_UNUSED (#83)
This options had a different capitalization from our other options. So bring it in line, at least in CMake. For the preprocessor definition I think we should stick with the all caps naming.
- Loading branch information
1 parent
f9d19dc
commit b0cfb37
Showing
2 changed files
with
2 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,6 @@ | |
# Contact KDAB at <[email protected]> for commercial licensing options. | ||
# | ||
|
||
option(KDBINDINGS_ENABLE_WARN_UNUSED "Enable warnings for unused ConnectionHandles" ON) | ||
|
||
set(HEADERS | ||
binding.h | ||
binding_evaluator.h | ||
|
@@ -37,7 +35,7 @@ set_target_properties(KDBindings PROPERTIES | |
INTERFACE_COMPILE_FEATURES cxx_std_17 | ||
) | ||
|
||
if(KDBINDINGS_ENABLE_WARN_UNUSED) | ||
if(KDBindings_ENABLE_WARN_UNUSED) | ||
target_compile_definitions(KDBindings INTERFACE KDBINDINGS_ENABLE_WARN_UNUSED=1) | ||
endif() | ||
|
||
|