Skip to content

Commit

Permalink
#1173: enable fcontext when neither USE_OPENMP nor USE_STD_THREAD is set
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed Feb 1, 2021
1 parent 98c45a0 commit a43dc5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/load_threading_package.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ elseif(USE_OPENMP)
else()
message(
STATUS
"No threading configuration provided"
"Neither OpenMP nor std::thread was requested, "
"using fcontext for worker threading"
)
config_no_threading()
endif()
1 change: 1 addition & 0 deletions cmake/threading_config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ endfunction(config_for_std_thread)
function(config_no_threading)
set(vt_feature_cmake_openmp "0" PARENT_SCOPE)
set(vt_feature_cmake_stdthread "0" PARENT_SCOPE)
option(vt_fcontext_enabled "Build VT with fcontext (ULT) enabled" ON)
endfunction(config_no_threading)

0 comments on commit a43dc5a

Please sign in to comment.