mirror of https://github.com/oxen-io/lokinet
fix macos assemble_gui dependency
The `sign` target on macos was not working properly -- the signing script would run before the build is finished. This was caused by cmake/macos.cmake having an `if(BUILD_GUI)`, but BUILD_GUI isn't defined as an option until cmake/gui.cmake, which hadn't been included yet where macos.cmake was included. This extracts just the `option(BUIL_GUI)` from gui.cmake into a separate gui-option.cmake file that we can load earlier to fix it. While here I also noticed the GUI_EXE setting was defined as an option, but isn't actually a boolean value, as an option, but isn't actually a boolean value, so fixed it by making it a `set(... CACHE FILEPATH ...)`.pull/1997/head
parent
9f258700b7
commit
bac3f9dca1
@ -0,0 +1,6 @@
|
||||
set(default_build_gui OFF)
|
||||
if(APPLE OR WIN32)
|
||||
set(default_build_gui ON)
|
||||
endif()
|
||||
|
||||
option(BUILD_GUI "build electron gui from 'gui' submodule source" ${default_build_gui})
|
Loading…
Reference in New Issue