mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-21 16:38:06 -06:00
Bomb out immediately if or aren't set
Instead of spewing dozens of errors about file(TO_CMAKE_PATH) needing 3 parameters.
This commit is contained in:
parent
4aefc55a0a
commit
76a4389a92
@ -203,6 +203,9 @@ function(gnc_add_scheme_targets _TARGET)
|
||||
set(_GUILE_LOAD_COMPILED_PATH "${current_bindir}")
|
||||
# VERSION_GREATER_EQUAL introduced in CMake 3.7.
|
||||
if(MINGW64 AND (${GUILE_EFFECTIVE_VERSION} VERSION_GREATER_EQUAL 2.2))
|
||||
if (NOT (DEFINED ENV{GUILE_LOAD_PATH} AND DEFINED ENV{GUILE_LOAD_COMPILED_PATH}))
|
||||
message(FATAL_ERROR "$GUILE_LOAD_PATH and $GUILE_LOAD_COMPILED_PATH must be defined in the environment to configure GnuCash on Microsoft Windows.")
|
||||
endif()
|
||||
file(TO_CMAKE_PATH $ENV{GUILE_LOAD_PATH} guile_load_path)
|
||||
file(TO_CMAKE_PATH $ENV{GUILE_LOAD_COMPILED_PATH} guile_load_compiled_path)
|
||||
list(APPEND _GUILE_LOAD_PATH ${guile_load_path})
|
||||
|
Loading…
Reference in New Issue
Block a user