mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-15 12:13:24 +00:00
bac3f9dca1
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 ...)`.
7 lines
171 B
CMake
7 lines
171 B
CMake
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})
|