Skip to content

Commit 93eb24e

Browse files
Used annotations to guide cmake formatting
1 parent b965217 commit 93eb24e

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

CMakeLists.txt

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ option(
1919
# [CMAKE.SKIP_EXAMPLES]
2020
option(
2121
BEMAN_ANY_VIEW_BUILD_EXAMPLES
22-
"Enable building examples. Default: ${PROJECT_IS_TOP_LEVEL}. Values: {ON, OFF}."
22+
"Enable building examples. Default: ${PROJECT_IS_TOP_LEVEL}. Values: { ON, OFF }."
2323
${PROJECT_IS_TOP_LEVEL}
2424
)
2525

@@ -57,14 +57,20 @@ add_library(beman::any_view ALIAS beman.any_view)
5757

5858
set_target_properties(
5959
beman.any_view
60-
PROPERTIES VERIFY_INTERFACE_HEADER_SETS ON EXPORT_NAME any_view
60+
PROPERTIES
61+
# cmake-format: off
62+
VERIFY_INTERFACE_HEADER_SETS ON
63+
EXPORT_NAME any_view
6164
)
6265

6366
target_sources(
6467
beman.any_view
6568
PUBLIC
6669
FILE_SET HEADERS
67-
BASE_DIRS ${CMAKE_CURRENT_BINARY_DIR}/include include
70+
BASE_DIRS
71+
# cmake-format: off
72+
${CMAKE_CURRENT_BINARY_DIR}/include
73+
include
6874
FILES
6975
${CMAKE_CURRENT_BINARY_DIR}/include/beman/any_view/config.hpp
7076
include/beman/any_view/detail/any_iterator.hpp
@@ -83,7 +89,12 @@ target_sources(
8389

8490
include(GNUInstallDirs)
8591

86-
install(TARGETS beman.any_view EXPORT beman.any_view-targets FILE_SET HEADERS)
92+
install(
93+
# cmake-format: off
94+
TARGETS beman.any_view
95+
EXPORT beman.any_view-targets
96+
FILE_SET HEADERS
97+
)
8798

8899
if(BEMAN_ANY_VIEW_INSTALL_CONFIG_FILE_PACKAGE)
89100
install(

0 commit comments

Comments
 (0)