CMake: Tweak for Visual Studio 10 quirk at clang-standalone build.
llvm-svn: 125647
This commit is contained in:
		
							parent
							
								
									84f2500eb8
								
							
						
					
					
						commit
						2ec773f772
					
				| 
						 | 
					@ -221,3 +221,12 @@ add_subdirectory(test)
 | 
				
			||||||
if( NOT CLANG_BUILT_STANDALONE )
 | 
					if( NOT CLANG_BUILT_STANDALONE )
 | 
				
			||||||
  add_subdirectory(unittests)
 | 
					  add_subdirectory(unittests)
 | 
				
			||||||
endif()
 | 
					endif()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Workaround for MSVS10 to avoid the Dialog Hell
 | 
				
			||||||
 | 
					# FIXME: This could be removed with future version of CMake.
 | 
				
			||||||
 | 
					if( CLANG_BUILT_STANDALONE AND MSVC_VERSION EQUAL 1600 )
 | 
				
			||||||
 | 
					  set(CLANG_SLN_FILENAME "${CMAKE_CURRENT_BINARY_DIR}/Clang.sln")
 | 
				
			||||||
 | 
					  if( EXISTS "${CLANG_SLN_FILENAME}" )
 | 
				
			||||||
 | 
					    file(APPEND "${CLANG_SLN_FILENAME}" "\n# This should be regenerated!\n")
 | 
				
			||||||
 | 
					  endif()
 | 
				
			||||||
 | 
					endif()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue