forked from libhal-google/libhal-cmake-util
-
Notifications
You must be signed in to change notification settings - Fork 2
Add hal_check_env #18
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
The function would basically do this. We should replace all the other cases were we check the flags directly.
function(hal_check_env VAR_NAME)
if(NOT DEFINED ENV{${VAR_NAME}})
message(FATAL_ERROR "Build environment variable ${VAR_NAME} is required for this project.")
endif()
endfunction()
check_env(LIBHAL_PLATFORM_LIBRARY)
check_env(LIBHAL_PLATFORM)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request