diff --git a/cmake/load_threading_package.cmake b/cmake/load_threading_package.cmake index f835de0489..ddbbbfd996 100644 --- a/cmake/load_threading_package.cmake +++ b/cmake/load_threading_package.cmake @@ -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() diff --git a/cmake/threading_config.cmake b/cmake/threading_config.cmake index 41c9c3584e..8afcace142 100644 --- a/cmake/threading_config.cmake +++ b/cmake/threading_config.cmake @@ -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)