We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0ff031d + 50187d6 commit f3b7599Copy full SHA for f3b7599
Modules/Platform/Windows-MSVC.cmake
@@ -233,8 +233,11 @@ else()
233
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")
234
endif()
235
236
- if(MSVC_VERSION GREATER_EQUAL 1915)
237
- set(_JMC "/JMC")
+ # JMC only supported in MSVC
+ 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()
241
242
243
if(MSVC_VERSION LESS 1310)
0 commit comments