mirror of
				https://github.com/gnif/LookingGlass.git
				synced 2025-11-04 06:31:54 +00:00 
			
		
		
		
	[cmake] ensure the version is flagged as dirty in all cases
A developer could have changes in the index which would not add the "+" symbol.
This commit is contained in:
		
				
					committed by
					
						
						Geoffrey McRae
					
				
			
			
				
	
			
			
			
						parent
						
							bf1eba15d1
						
					
				
				
					commit
					9f787777b5
				
			@@ -6,7 +6,7 @@ execute_process(
 | 
			
		||||
 | 
			
		||||
if (NOT "${GIT_REV}" STREQUAL "")
 | 
			
		||||
	execute_process(
 | 
			
		||||
		COMMAND bash -c "git diff --quiet --exit-code || echo +"
 | 
			
		||||
		COMMAND bash -c "git diff --quiet --exit-code && git diff --cached --quiet --exit-code || echo +"
 | 
			
		||||
		WORKING_DIRECTORY "${PROJECT_TOP}"
 | 
			
		||||
		OUTPUT_VARIABLE GIT_DIFF)
 | 
			
		||||
else()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user