Skip to content

Commit

Permalink
Only use JMC for MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
merlynomsft committed Feb 20, 2019
1 parent 9b468f6 commit c68260c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Modules/Platform/Windows-MSVC.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,11 @@ else()
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")
endif()

if(MSVC_VERSION GREATER_EQUAL 1915)
set(_JMC "/JMC")
# JMC only supported in MSVC
if("x${CMAKE_C_COMPILER_ID}" STREQUAL "xMSVC" OR "x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xMSVC" )
if(MSVC_VERSION GREATER_EQUAL 1915)
set(_JMC "/JMC")
endif()
endif()

if(MSVC_VERSION LESS 1310)
Expand Down

0 comments on commit c68260c

Please sign in to comment.