Skip to content

Commit 508a8a9

Browse files
committed
Change exported install name to beman::execution26
1 parent 2d7e75e commit 508a8a9

File tree

3 files changed

+26
-18
lines changed

3 files changed

+26
-18
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
1212
endif()
1313

1414
set(TARGET_NAME execution26)
15-
set(TARGET_NAMESPACE beman) # FIXME: not used in install(EXPORT ...) CK?
15+
set(TARGET_NAMESPACE beman)
1616
set(TARGET_PREFIX ${TARGET_NAMESPACE}.${TARGET_NAME})
1717
set(TARGET_LIBRARY ${PROJECT_NAME})
18-
set(TARGET_ALIAS ${TARGET_LIBRARY}::${TARGET_LIBRARY})
18+
set(TARGET_ALIAS ${TARGET_NAMESPACE}::${TARGET_NAME})
1919
set(TARGET_PACKAGE_NAME ${PROJECT_NAME}-config)
2020
set(TARGETS_EXPORT_NAME ${PROJECT_NAME}-targets)
2121

src/beman/execution26/CMakeLists.txt

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@
33
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
44
# cmake-format: on
55

6-
add_library(${TARGET_LIBRARY} STATIC)
7-
add_library(${TARGET_ALIAS} ALIAS ${TARGET_LIBRARY})
6+
add_library(${TARGET_NAME} STATIC)
7+
add_library(${TARGET_ALIAS} ALIAS ${TARGET_NAME})
88

99
if(CMAKE_BUILD_TYPE STREQUAL Debug)
10-
target_link_libraries(${TARGET_LIBRARY} PUBLIC $<BUILD_INTERFACE:${TARGET_LIBRARY}_project_options>)
11-
target_link_libraries(${TARGET_LIBRARY} PUBLIC $<BUILD_INTERFACE:${TARGET_LIBRARY}_project_warnings>)
10+
target_link_libraries(${TARGET_NAME} PUBLIC $<BUILD_INTERFACE:${TARGET_NAME}_project_options>)
11+
target_link_libraries(${TARGET_NAME} PUBLIC $<BUILD_INTERFACE:${TARGET_NAME}_project_warnings>)
1212
endif()
1313

1414
include(CMakePrintHelpers)
15-
cmake_print_variables(TARGET_ALIAS TARGET_LIBRARY TARGET_PREFIX PROJECT_SOURCE_DIR)
15+
cmake_print_variables(TARGET_ALIAS TARGET_NAME TARGET_PREFIX PROJECT_SOURCE_DIR)
1616

1717
target_sources(
18-
${TARGET_LIBRARY}
18+
${TARGET_NAME}
1919
PRIVATE execution.cpp
2020
PUBLIC FILE_SET
21-
${TARGET_LIBRARY}_public_headers
21+
${TARGET_NAME}_public_headers
2222
TYPE
2323
HEADERS
2424
BASE_DIRS
@@ -28,7 +28,7 @@ target_sources(
2828
${PROJECT_SOURCE_DIR}/include/beman/execution26/functional.hpp
2929
${PROJECT_SOURCE_DIR}/include/beman/execution26/stop_token.hpp
3030
PUBLIC FILE_SET
31-
${TARGET_LIBRARY}_detail_headers
31+
${TARGET_NAME}_detail_headers
3232
TYPE
3333
HEADERS
3434
BASE_DIRS
@@ -40,7 +40,10 @@ target_sources(
4040
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/as_awaitable.hpp
4141
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/as_except_ptr.hpp
4242
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/await_result_type.hpp
43+
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/atomic_intrusive_stack.hpp
44+
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/await_result_type.hpp
4345
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/await_suspend_result.hpp
46+
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/awaitable_sender.hpp
4447
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/basic_operation.hpp
4548
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/basic_receiver.hpp
4649
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/basic_sender.hpp
@@ -49,6 +52,7 @@ target_sources(
4952
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/callable.hpp
5053
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/check_type_alias_exist.hpp
5154
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/child_type.hpp
55+
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/class_type.hpp
5256
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/common.hpp
5357
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/completion_domain.hpp
5458
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/completion_signature.hpp
@@ -64,6 +68,7 @@ target_sources(
6468
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/continues_on.hpp
6569
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/decayed_same_as.hpp
6670
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/decayed_tuple.hpp
71+
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/decayed_type_list.hpp
6772
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/decayed_typeof.hpp
6873
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/decays_to.hpp
6974
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/default_domain.hpp
@@ -138,6 +143,7 @@ target_sources(
138143
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/sender.hpp
139144
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/sender_adaptor.hpp
140145
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/sender_adaptor_closure.hpp
146+
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/sender_awaitable.hpp
141147
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/sender_decompose.hpp
142148
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/sender_for.hpp
143149
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/sender_in.hpp
@@ -165,6 +171,7 @@ target_sources(
165171
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/then.hpp
166172
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/transform_sender.hpp
167173
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/type_list.hpp
174+
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/unspecified_promise.hpp
168175
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/unstoppable_token.hpp
169176
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/valid_completion_for.hpp
170177
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/valid_completion_signatures.hpp
@@ -174,32 +181,33 @@ target_sources(
174181
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/when_all.hpp
175182
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/when_all_with_variant.hpp
176183
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/with_await_transform.hpp
184+
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/with_awaitable_senders.hpp
177185
${PROJECT_SOURCE_DIR}/include/beman/execution26/detail/write_env.hpp
178186
)
179187

180188
# cmake-format: off
181-
get_property(DETAIL_HEADER_FILES TARGET ${TARGET_LIBRARY} PROPERTY HEADER_SET_${TARGET_LIBRARY}_detail_headers)
189+
get_property(DETAIL_HEADER_FILES TARGET ${TARGET_NAME} PROPERTY HEADER_SET_${TARGET_NAME}_detail_headers)
182190
source_group("Header Files\\detail" FILES ${DETAIL_HEADER_FILES})
183191

184-
set_target_properties(${TARGET_LIBRARY} PROPERTIES VERIFY_INTERFACE_HEADER_SETS ON)
192+
set_target_properties(${TARGET_NAME} PROPERTIES VERIFY_INTERFACE_HEADER_SETS ON)
185193

186-
target_compile_features(${TARGET_LIBRARY} PUBLIC
194+
target_compile_features(${TARGET_NAME} PUBLIC
187195
"$<$<COMPILE_FEATURES:cxx_std_26>:cxx_std_26>"
188196
"$<$<NOT:$<COMPILE_FEATURES:cxx_std_26>>:cxx_std_23>"
189197
)
190198

191199
install(
192-
TARGETS ${TARGET_LIBRARY}
200+
TARGETS ${TARGET_NAME}
193201
EXPORT ${TARGETS_EXPORT_NAME}1
194202
ARCHIVE DESTINATION lib/$<CONFIG>
195-
FILE_SET ${TARGET_LIBRARY}_public_headers
196-
FILE_SET ${TARGET_LIBRARY}_detail_headers
203+
FILE_SET ${TARGET_NAME}_public_headers
204+
FILE_SET ${TARGET_NAME}_detail_headers
197205
)
198206
# cmake-format: on
199207

200208
install(
201209
EXPORT ${TARGETS_EXPORT_NAME}1
202210
FILE ${TARGETS_EXPORT_NAME}.cmake
203211
DESTINATION "${INSTALL_CONFIGDIR}"
204-
NAMESPACE ${TARGET_LIBRARY}::
212+
NAMESPACE ${TARGET_NAMESPACE}::
205213
)

tests/beman/execution26/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ remove_definitions(-DNDEBUG) # NOTE: we want ASSERT statements in Release too! C
124124
foreach(test ${execution_tests})
125125
set(TEST_EXE ${TARGET_PREFIX}.${test})
126126
add_executable(${TEST_EXE} ${test}.cpp)
127-
target_link_libraries(${TEST_EXE} PRIVATE beman_execution26::beman_execution26)
127+
target_link_libraries(${TEST_EXE} PRIVATE beman::execution26)
128128
add_test(NAME ${TEST_EXE} COMMAND $<TARGET_FILE:${TEST_EXE}>)
129129
endforeach()
130130

0 commit comments

Comments
 (0)