We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 72b002d + 1f03b33 commit 4a7bf3fCopy full SHA for 4a7bf3f
applications/CMakeLists.txt
@@ -5,7 +5,7 @@ add_subdirectory(sam)
5
add_subdirectory(script)
6
7
# Edit python scripts if the host is built with python3
8
-if(${TUTTLE_PYTHON_VERSION} VERSION_GREATER "3")
+if(${TUTTLE_PYTHON_VERSION} and ${TUTTLE_PYTHON_VERSION} VERSION_GREATER "3")
9
set(BASH_PYTHON2 "#!/usr/bin/env python")
10
set(BASH_PYTHON3 "#!/usr/bin/env python3")
11
applications/sam/CMakeLists.txt
@@ -1,4 +1,8 @@
1
## sam
2
+find_package(SWIG)
3
+if(NOT SWIG_FOUND)
4
+ return()
+endif()
set(TUTTLE_INSTALL_SAM_PYTHON "bin/python/sam")
0 commit comments