Skip to content

Commit

Permalink
Merge pull request #72 from Microsoft/dev/merlynop/jmc_only_msvc
Browse files Browse the repository at this point in the history
Only pass /jmc flag for MSVC (cl).
  • Loading branch information
merlynomsft authored Mar 15, 2019
2 parents 0ff031d + 50187d6 commit f3b7599
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 f3b7599

Please sign in to comment.