Index: openmp/runtime/cmake/LibompHandleFlags.cmake =================================================================== --- openmp/runtime/cmake/LibompHandleFlags.cmake +++ openmp/runtime/cmake/LibompHandleFlags.cmake @@ -79,8 +79,8 @@ if(CMAKE_SIZEOF_VOID_P EQUAL 8) libomp_append(asmflags_local -m32 LIBOMP_HAVE_M32_FLAG) endif() - libomp_append(asmflags_local /safeseh LIBOMP_HAVE_SAFESEH_MASM_FLAG) - libomp_append(asmflags_local /coff LIBOMP_HAVE_COFF_MASM_FLAG) + libomp_append(asmflags_local -safeseh LIBOMP_HAVE_SAFESEH_MASM_FLAG) + libomp_append(asmflags_local -coff LIBOMP_HAVE_COFF_MASM_FLAG) elseif(${MIC}) libomp_append(asmflags_local -mmic LIBOMP_HAVE_MMIC_FLAG) endif() @@ -105,7 +105,7 @@ libomp_append(ldflags_local -Wl,-z,noexecstack LIBOMP_HAVE_Z_NOEXECSTACK_FLAG) libomp_append(ldflags_local -no-intel-extensions LIBOMP_HAVE_NO_INTEL_EXTENSIONS_FLAG) libomp_append(ldflags_local -static-intel LIBOMP_HAVE_STATIC_INTEL_FLAG) - libomp_append(ldflags_local /SAFESEH LIBOMP_HAVE_SAFESEH_FLAG) + libomp_append(ldflags_local -SAFESEH LIBOMP_HAVE_SAFESEH_FLAG) # Architectural linker flags if(${IA32}) if(CMAKE_SIZEOF_VOID_P EQUAL 8) Index: openmp/runtime/cmake/LibompMicroTests.cmake =================================================================== --- openmp/runtime/cmake/LibompMicroTests.cmake +++ openmp/runtime/cmake/LibompMicroTests.cmake @@ -63,7 +63,7 @@ libomp_append(libomp_test_touch_cflags /nologo) libomp_append(libomp_test_touch_libs ${LIBOMPIMP_OUTPUT_DIRECTORY}/${LIBOMP_IMP_LIB_FILE}) if(${IA32}) - libomp_append(libomp_test_touch_ldflags /safeseh) + libomp_append(libomp_test_touch_ldflags -safeseh) endif() else() # (Unix based systems, Intel(R) MIC Architecture, and Mac) if(LIBOMP_SHELL) Index: openmp/runtime/cmake/config-ix.cmake =================================================================== --- openmp/runtime/cmake/config-ix.cmake +++ openmp/runtime/cmake/config-ix.cmake @@ -111,7 +111,7 @@ # Check linker flags if(WIN32) - libomp_check_linker_flag(/SAFESEH LIBOMP_HAVE_SAFESEH_FLAG) + libomp_check_linker_flag(-SAFESEH LIBOMP_HAVE_SAFESEH_FLAG) elseif(NOT APPLE) libomp_check_linker_flag(-Wl,-x LIBOMP_HAVE_X_FLAG) libomp_check_linker_flag(-Wl,--warn-shared-textrel LIBOMP_HAVE_WARN_SHARED_TEXTREL_FLAG)