Skip to content

Commit 2452c7a

Browse files
committed
Update cmake format
1 parent 0cff2ad commit 2452c7a

File tree

4 files changed

+15
-19
lines changed

4 files changed

+15
-19
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ if(OPTIONAL_ENABLE_TESTING)
3737
beman_optional_test
3838
PRIVATE
3939
FILE_SET beman_optional_test_headers
40-
TYPE HEADERS
41-
BASE_DIRS tests
40+
TYPE HEADERS
41+
BASE_DIRS tests
4242
)
4343
# Tests
4444
add_subdirectory(tests/beman/optional)

examples/CMakeLists.txt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,8 @@ foreach(example ${EXAMPLES})
3030

3131
# Install .
3232
install(
33-
TARGETS
34-
${example}
35-
COMPONENT
36-
beman_optional_examples
37-
DESTINATION
38-
${CMAKE_INSTALL_BINDIR}
33+
TARGETS ${example}
34+
COMPONENT beman_optional_examples
35+
DESTINATION ${CMAKE_INSTALL_BINDIR}
3936
)
4037
endforeach()

include/beman/optional/CMakeLists.txt

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ target_sources(
55
beman_optional
66
PUBLIC
77
FILE_SET beman_optional_headers
8-
TYPE HEADERS
9-
FILES
10-
optional.hpp
11-
detail/iterator.hpp
12-
detail/stl_interfaces/config.hpp
13-
detail/stl_interfaces/fwd.hpp
14-
detail/stl_interfaces/iterator_interface.hpp
8+
TYPE HEADERS
9+
FILES
10+
optional.hpp
11+
detail/iterator.hpp
12+
detail/stl_interfaces/config.hpp
13+
detail/stl_interfaces/fwd.hpp
14+
detail/stl_interfaces/iterator_interface.hpp
1515
)
1616

1717
install(
@@ -24,8 +24,7 @@ install(
2424
install(
2525
TARGETS beman_optional
2626
EXPORT beman_optional_export
27-
DESTINATION
28-
${CMAKE_INSTALL_LIBDIR}
27+
DESTINATION ${CMAKE_INSTALL_LIBDIR}
2928
FILE_SET beman_optional_headers
3029
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
3130
COMPONENT beman_optional_development

tests/beman/optional/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ target_sources(
1818
beman_optional_test
1919
PRIVATE
2020
FILE_SET beman_optional_test_headers
21-
TYPE HEADERS
22-
FILES test_types.hpp test_utilities.hpp
21+
TYPE HEADERS
22+
FILES test_types.hpp test_utilities.hpp
2323
)
2424

2525
target_link_libraries(

0 commit comments

Comments
 (0)