Update CMakeLists.txt

Make sure ESPROOT is set.
This commit is contained in:
Rafal Zajac 2018-05-10 11:04:51 +02:00 committed by GitHub
parent 4d7176fc6c
commit 929bd97e0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,6 +12,11 @@
# License for the specific language governing permissions and limitations
# under the License.
# Make sure ESPROOT environemt varaiabnle is set.
if (NOT EXISTS $ENV{ESPROOT})
message("The ESPROOT environment varaible is not set. Using ${HOME}/esproot.")
set(ENV{ESPROOT} "${HOME}/esproot")
endif()
# Bootstrap before call to project().
include("$ENV{ESPROOT}/esp-cmake/ESP8266.bootstrap.cmake")