mirror of
				https://git.wownero.com/wowlet/wowlet.git
				synced 2024-08-15 01:03:14 +00:00 
			
		
		
		
	Merge pull request 'initialize submodules before checking hashes' (#31) from wowario/wowlet:sub into master
Reviewed-on: https://git.wownero.com/wowlet/wowlet/pulls/31
This commit is contained in:
		
						commit
						fafc8e4d7d
					
				
					 1 changed files with 2 additions and 9 deletions
				
			
		| 
						 | 
					@ -28,15 +28,6 @@ if(DEBUG)
 | 
				
			||||||
    set(CMAKE_VERBOSE_MAKEFILE ON)
 | 
					    set(CMAKE_VERBOSE_MAKEFILE ON)
 | 
				
			||||||
endif()
 | 
					endif()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Update and init submodules by default
 | 
					 | 
				
			||||||
if(NOT MANUAL_SUBMODULES)
 | 
					 | 
				
			||||||
  find_package(Git)
 | 
					 | 
				
			||||||
  if(GIT_FOUND)
 | 
					 | 
				
			||||||
    message(STATUS "Initializing submodules")
 | 
					 | 
				
			||||||
    execute_process(COMMAND git "submodule" "update" "--init" "--recursive")
 | 
					 | 
				
			||||||
  endif()
 | 
					 | 
				
			||||||
endif()
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
set(WOWNERO_HEAD "f611d5c9e32bc62f1735f6571b0bdb95cc020531")
 | 
					set(WOWNERO_HEAD "f611d5c9e32bc62f1735f6571b0bdb95cc020531")
 | 
				
			||||||
set(BUILD_GUI_DEPS ON)
 | 
					set(BUILD_GUI_DEPS ON)
 | 
				
			||||||
set(ARCH "x86-64")
 | 
					set(ARCH "x86-64")
 | 
				
			||||||
| 
						 | 
					@ -90,6 +81,8 @@ endfunction()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
find_package(Git)
 | 
					find_package(Git)
 | 
				
			||||||
if(GIT_FOUND)
 | 
					if(GIT_FOUND)
 | 
				
			||||||
 | 
					    message(STATUS "Initializing submodules")
 | 
				
			||||||
 | 
					    execute_process(COMMAND git "submodule" "update" "--init" "--recursive")
 | 
				
			||||||
    execute_process(COMMAND git rev-parse "HEAD" WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/monero OUTPUT_VARIABLE _WOWNERO_HEAD OUTPUT_STRIP_TRAILING_WHITESPACE)
 | 
					    execute_process(COMMAND git rev-parse "HEAD" WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/monero OUTPUT_VARIABLE _WOWNERO_HEAD OUTPUT_STRIP_TRAILING_WHITESPACE)
 | 
				
			||||||
    if(NOT _WOWNERO_HEAD STREQUAL WOWNERO_HEAD)
 | 
					    if(NOT _WOWNERO_HEAD STREQUAL WOWNERO_HEAD)
 | 
				
			||||||
        message(FATAL_ERROR "[submodule] Monero HEAD was at ${_WOWNERO_HEAD} but should be at ${WOWNERO_HEAD}")
 | 
					        message(FATAL_ERROR "[submodule] Monero HEAD was at ${_WOWNERO_HEAD} but should be at ${WOWNERO_HEAD}")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue