Skip to content

Commit

Permalink
CMake: fixed configure of application if TUTTLE_PYTHON_VERSION is not…
Browse files Browse the repository at this point in the history
… set
  • Loading branch information
Clement Champetier committed May 27, 2016
1 parent 9a3f7ff commit 42de8c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions applications/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ add_subdirectory(sam)
# scripts
add_subdirectory(script)

if(NOT TUTTLE_PYTHON_VERSION)
return()
endif()

# Edit python scripts if the host is built with python3
if(${TUTTLE_PYTHON_VERSION} VERSION_GREATER "3")
set(BASH_PYTHON2 "#!/usr/bin/env python")
Expand Down

0 comments on commit 42de8c0

Please sign in to comment.