Skip to content

Instantly share code, notes, and snippets.

@lighta
Created July 6, 2020 23:28
Show Gist options
  • Save lighta/83130315f7dd97a7e9ba6c2add98fbd8 to your computer and use it in GitHub Desktop.
Save lighta/83130315f7dd97a7e9ba6c2add98fbd8 to your computer and use it in GitHub Desktop.
message("TPE_TOOLS_PATH=${TPE_TOOLS_PATH}, ENV{TPE_TOOLS_PATH}=$ENV{TPE_TOOLS_PATH}")
if(NOT DEFINED TPE_TOOLS_PATH)
set(TPE_TOOLS_PATH $ENV{TPE_TOOLS_PATH})
endif()
if(NOT DEFINED TPE_TOOLS_PATH)
message(FATAL_ERROR "Please define TPE_TOOLS_PATH, (either as -DTPE_TOOLS_PATH or environment variable)")
set(ENV{TPE_TOOLS_PATH} "foo")
endif()
message("TPE_TOOLS_PATH=${TPE_TOOLS_PATH}, ENV{TPE_TOOLS_PATH}=$ENV{TPE_TOOLS_PATH}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment