mirror of https://github.com/wb2osz/direwolf.git
				
				
				
			cmake: fix MSVC check
This commit is contained in:
		
							parent
							
								
									10c688e9d4
								
							
						
					
					
						commit
						9dd4283344
					
				| 
						 | 
				
			
			@ -157,16 +157,17 @@ elseif(APPLE)
 | 
			
		|||
  message(STATUS "RPATH support: ${CMAKE_MACOSX_RPATH}")
 | 
			
		||||
 | 
			
		||||
elseif (WIN32)
 | 
			
		||||
  if(C_MSVC)
 | 
			
		||||
    if (NOT VS2015 AND NOT VS2017 AND NOT VS2019)
 | 
			
		||||
      message(FATAL_ERROR "You must use Microsoft Visual Studio 2015, 2017 or 2019 as compiler")
 | 
			
		||||
  endif()
 | 
			
		||||
 | 
			
		||||
    else()
 | 
			
		||||
      # compile with full multicore
 | 
			
		||||
      set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MP")
 | 
			
		||||
      set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
 | 
			
		||||
 | 
			
		||||
      set(CUSTOM_SHELL_BIN "")
 | 
			
		||||
    endif()
 | 
			
		||||
  endif()
 | 
			
		||||
endif()
 | 
			
		||||
 | 
			
		||||
if (C_CLANG OR C_GCC)
 | 
			
		||||
  # _BSD_SOURCE is deprecated we need to use _DEFAULT_SOURCE.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue