Skip to content

Commit 3dd533a

Browse files
authored
Introduce PPC_IMPLEMENTATIONS variable (#593)
Introduced a cache variable `PPC_IMPLEMENTATIONS` in the student tasks CMake configuration, so implementations can be customized during CMake configuration
1 parent 40ce97b commit 3dd533a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmake/functions.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function(ppc_configure_subproject SUBDIR)
8383
message(STATUS "${SUBDIR}")
8484

8585
# List of implementations to configure
86-
foreach(IMPL IN LISTS IMPLEMENTATIONS)
86+
foreach(IMPL IN LISTS PPC_IMPLEMENTATIONS)
8787
setup_implementation(
8888
NAME
8989
${IMPL}

tasks/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ppc_add_test(${FUNC_TEST_EXEC} common/runners/functional.cpp USE_FUNC_TESTS)
1414
ppc_add_test(${PERF_TEST_EXEC} common/runners/performance.cpp USE_PERF_TESTS)
1515

1616
# ——— List of implementations ————————————————————————————————————————
17-
set(IMPLEMENTATIONS all mpi omp seq stl tbb)
17+
set(PPC_IMPLEMENTATIONS "all;mpi;omp;seq;stl;tbb" CACHE STRING "Implementations to build (semicolon-separated)")
1818

1919
# ——— Configure each subproject —————————————————————————————————————
2020
file(

0 commit comments

Comments
 (0)