Fix building on MinGW-w64
Some HLSL to Spirv tests fail.
This commit is contained in:
		
							parent
							
								
									b16f7e6819
								
							
						
					
					
						commit
						8155934be6
					
				@ -28,7 +28,9 @@ endif(ENABLE_HLSL)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
if(WIN32)
 | 
					if(WIN32)
 | 
				
			||||||
    set(CMAKE_DEBUG_POSTFIX "d")
 | 
					    set(CMAKE_DEBUG_POSTFIX "d")
 | 
				
			||||||
 | 
					    if(MSVC)
 | 
				
			||||||
        include(ChooseMSVCCRT.cmake)
 | 
					        include(ChooseMSVCCRT.cmake)
 | 
				
			||||||
 | 
					    endif(MSVC)
 | 
				
			||||||
    add_definitions(-DGLSLANG_OSINCLUDE_WIN32)
 | 
					    add_definitions(-DGLSLANG_OSINCLUDE_WIN32)
 | 
				
			||||||
elseif(UNIX)
 | 
					elseif(UNIX)
 | 
				
			||||||
    add_definitions(-fPIC)
 | 
					    add_definitions(-fPIC)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user