diff --git a/openmp/CMakeLists.txt b/openmp/CMakeLists.txt --- a/openmp/CMakeLists.txt +++ b/openmp/CMakeLists.txt @@ -94,7 +94,7 @@ add_subdirectory(tools) endif() -option(MSVC_NAME_SCHEME "Build dll with MSVC naming scheme." OFF) +option(OPENMP_MSVC_NAME_SCHEME "Build dll with MSVC naming scheme." OFF) # Build documentation add_subdirectory(docs) diff --git a/openmp/runtime/CMakeLists.txt b/openmp/runtime/CMakeLists.txt --- a/openmp/runtime/CMakeLists.txt +++ b/openmp/runtime/CMakeLists.txt @@ -355,7 +355,7 @@ set(LIBOMP_DEFAULT_LIB_NAME ${LIBOMP_DEFAULT_LIB_NAME}stubs) endif() set(LIBOMP_LIB_NAME ${LIBOMP_DEFAULT_LIB_NAME} CACHE STRING "Base OMP library name") -if (MSVC_NAME_SCHEME) +if (OPENMP_MSVC_NAME_SCHEME) # MSVC_TOOLS_VERSION corresponds to the version of the VC++ toolset. set(MSVC_TOOLS_VERSION 140) set(LIBOMP_LIB_NAME ${LIBOMP_LIB_NAME}${MSVC_TOOLS_VERSION}.${LIBOMP_ARCH}) diff --git a/openmp/runtime/src/CMakeLists.txt b/openmp/runtime/src/CMakeLists.txt --- a/openmp/runtime/src/CMakeLists.txt +++ b/openmp/runtime/src/CMakeLists.txt @@ -158,7 +158,7 @@ set(LIBOMP_LINKER_LANGUAGE CXX) endif() -if(MSVC_NAME_SCHEME) +if(OPENMP_MSVC_NAME_SCHEME) if(uppercase_CMAKE_BUILD_TYPE STREQUAL "DEBUG") set(LIBOMP_PDB_NAME ${LIBOMP_DEFAULT_LIB_NAME}${MSVC_TOOLS_VERSION}d.${LIBOMP_ARCH}) set(LIBOMP_LIB_FILE ${LIBOMP_PDB_NAME}${LIBOMP_LIBRARY_SUFFIX}) @@ -243,7 +243,7 @@ # ${LIBOMP_DEFAULT_LIB_NAME}d${CMAKE_STATIC_LIBRARY_SUFFIX} # and the ARCHIVE_OUTPUT_NAME of ompdbg should be ${LIBOMP_DEFAULT_LIB_NAME_DBG}${LIBOMP_LIBRARY_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX} - if(MSVC_NAME_SCHEME) + if(OPENMP_MSVC_NAME_SCHEME) if(uppercase_CMAKE_BUILD_TYPE STREQUAL "DEBUG") set(LIBOMP_IMP_LIB_FILE ${LIBOMP_DEFAULT_LIB_NAME}d${CMAKE_STATIC_LIBRARY_SUFFIX}) set(LIBOMP_GENERATED_IMP_LIB_FILENAME ${LIBOMP_DEFAULT_LIB_NAME}d${LIBOMP_LIBRARY_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX})