Skip to content

Commit 0345ddc

Browse files
author
Clement Champetier
committed
CMake: fix error when TUTTLE_PYTHON_VERSION is not defined
This should fix the issue #587
1 parent 448003b commit 0345ddc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

applications/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ add_subdirectory(sam)
55
add_subdirectory(script)
66

77
# Edit python scripts if the host is built with python3
8-
if(${TUTTLE_PYTHON_VERSION} VERSION_GREATER "3")
8+
if(${TUTTLE_PYTHON_VERSION} and ${TUTTLE_PYTHON_VERSION} VERSION_GREATER "3")
99
set(BASH_PYTHON2 "#!/usr/bin/env python")
1010
set(BASH_PYTHON3 "#!/usr/bin/env python3")
1111

0 commit comments

Comments
 (0)