cmake: if BUILDSWIG is OFF then disable SWIG items
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
This commit is contained in:
@@ -61,6 +61,12 @@ option (INSTALLGPIOTOOL "Install gpio tool" OFF)
|
|||||||
option (BUILDARCH "Override architecture to build for - override" OFF)
|
option (BUILDARCH "Override architecture to build for - override" OFF)
|
||||||
option (TESTS "Override the addition of tests" ON)
|
option (TESTS "Override the addition of tests" ON)
|
||||||
|
|
||||||
|
if (NOT BUILDSWIG)
|
||||||
|
set (BUILDSWIGPYTHON OFF)
|
||||||
|
set (BUILDSWIGNODE OFF)
|
||||||
|
set (BUILDSWIGJAVA OFF)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (NOT BUILDARCH)
|
if (NOT BUILDARCH)
|
||||||
include (TargetArch)
|
include (TargetArch)
|
||||||
target_architecture (DETECTED_ARCH)
|
target_architecture (DETECTED_ARCH)
|
||||||
|
|||||||
Reference in New Issue
Block a user