diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 913d4bce2..1e37cf768 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -78,11 +78,7 @@ if(WARNINGS_ARE_ERRORS) endif() -if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") - set(COLVARS_OPENMP_DEFAULT OFF) -else() - set(COLVARS_OPENMP_DEFAULT ON) -endif() +set(COLVARS_OPENMP_DEFAULT ON) option(COLVARS_OPENMP "Build Colvars with (still limited) OpenMP support" ${COLVARS_OPENMP_DEFAULT}) if(COLVARS_OPENMP)