Skip to content

Commit 115731b

Browse files
Used annotations to guide cmake formatting (#22)
1 parent b965217 commit 115731b

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

CMakeLists.txt

Lines changed: 15 additions & 5 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,19 @@ 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+
#
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_CURRENT_BINARY_DIR}/include
72+
include
6873
FILES
6974
${CMAKE_CURRENT_BINARY_DIR}/include/beman/any_view/config.hpp
7075
include/beman/any_view/detail/any_iterator.hpp
@@ -83,13 +88,18 @@ target_sources(
8388

8489
include(GNUInstallDirs)
8590

86-
install(TARGETS beman.any_view EXPORT beman.any_view-targets FILE_SET HEADERS)
91+
install(
92+
#
93+
TARGETS beman.any_view
94+
EXPORT beman.any_view-targets
95+
FILE_SET HEADERS
96+
)
8797

8898
if(BEMAN_ANY_VIEW_INSTALL_CONFIG_FILE_PACKAGE)
8999
install(
90100
EXPORT beman.any_view-targets
91101
FILE beman.any_view-config.cmake
92-
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/beman.any_view"
102+
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/beman.any_view
93103
NAMESPACE beman::
94104
)
95105
endif()

0 commit comments

Comments
 (0)