Skip to content

Commit f3b7599

Browse files
authored
Merge pull request #72 from Microsoft/dev/merlynop/jmc_only_msvc
Only pass /jmc flag for MSVC (cl).
2 parents 0ff031d + 50187d6 commit f3b7599

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Modules/Platform/Windows-MSVC.cmake

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,11 @@ else()
233233
set(CMAKE_C_STANDARD_LIBRARIES_INIT "kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib")
234234
endif()
235235

236-
if(MSVC_VERSION GREATER_EQUAL 1915)
237-
set(_JMC "/JMC")
236+
# JMC only supported in MSVC
237+
if("x${CMAKE_C_COMPILER_ID}" STREQUAL "xMSVC" OR "x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xMSVC" )
238+
if(MSVC_VERSION GREATER_EQUAL 1915)
239+
set(_JMC "/JMC")
240+
endif()
238241
endif()
239242

240243
if(MSVC_VERSION LESS 1310)

0 commit comments

Comments
 (0)