Improve error handling
This commit is contained in:
@@ -15,6 +15,9 @@ if ("${BASH_EXECUTABLE}" STREQUAL "")
|
||||
find_program(BASH_PROGRAM bash NO_CACHE REQUIRED)
|
||||
set(BASH_EXECUTABLE ${BASH_PROGRAM} CACHE FILEPATH "Path to bash executable" FORCE)
|
||||
endif()
|
||||
if ("${BASH_EXECUTABLE}" STREQUAL "") # fallback to just bash and hope it works, this way at least we should get some proper error
|
||||
set(BASH_EXECUTABLE "bash" CACHE FILEPATH "Path to bash executable" FORCE)
|
||||
endif()
|
||||
# go from openVulkano/OpenVulkanoCpp to openVulkano
|
||||
cmake_path(GET CMAKE_CURRENT_SOURCE_DIR PARENT_PATH ROOT_FOLDER)
|
||||
set(SCRIPT_FOLDER "${ROOT_FOLDER}/Scripts")
|
||||
|
||||
Reference in New Issue
Block a user