Skip to content

Commit

Permalink
Don't build openmp examples with compiler without openmp support
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Aug 18, 2020
1 parent fb73393 commit dcfcda8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/unit_tests/C++/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ include_directories (${APEX_SOURCE_DIR}/src/apex)
link_directories (${APEX_BINARY_DIR}/src/apex)
#link_directories (${APEX_BINARY_DIR}/src/apex_pthread_wrapper)

if(OpenMP_FOUND)
set(APEX_OPENMP_TEST apex_openmp)
endif(OpenMP_FOUND)

set(example_programs
apex_init
apex_init_args
Expand Down Expand Up @@ -40,7 +44,7 @@ set(example_programs
apex_profiler_guids
apex_non_worker_thread
apex_swap_threads
apex_openmp
${APEX_OPENMP}
)
#apex_set_thread_cap
#apex_setup_power_cap_throttling
Expand Down

0 comments on commit dcfcda8

Please sign in to comment.