Skip to content

Commit f39de27

Browse files
authored
remove identity examples -- update cmake for scope_example.cpp
1 parent ad88af9 commit f39de27

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

examples/CMakeLists.txt

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,10 @@
11
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
22

3-
set(ALL_EXAMPLES identity_direct_usage)
4-
5-
# Example `identity_as_default_projection` need ranges support:
6-
include(CheckCXXSymbolExists)
7-
check_cxx_symbol_exists(__cpp_lib_ranges "ranges" HAS_RANGES)
8-
9-
if(HAS_RANGES)
10-
list(APPEND ALL_EXAMPLES identity_as_default_projection)
11-
else()
12-
message(
13-
WARNING
14-
"Missing range support! Skip: identity_as_default_projection"
15-
)
16-
endif()
3+
set(ALL_EXAMPLES scope_example)
174

185
message("Examples to be built: ${ALL_EXAMPLES}")
196

207
foreach(example ${ALL_EXAMPLES})
218
add_executable(beman.scope.examples.${example})
229
target_sources(beman.scope.examples.${example} PRIVATE ${example}.cpp)
23-
target_link_libraries(beman.scope.examples.${example} beman::scope)
2410
endforeach()

0 commit comments

Comments
 (0)