Skip to content

Commit 618569c

Browse files
author
Clement Champetier
committed
CMake: add argument DISABLE_BINDINGS
1 parent 0fb29fe commit 618569c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,12 @@ install(
6161
PATTERN "*.prf"
6262
)
6363

64-
### SWIG
64+
### Bindings with SWIG
65+
if(DISABLE_BINDINGS)
66+
message("Bindings disabled, will not build bindings.")
67+
return()
68+
endif()
69+
6570
find_package(SWIG)
6671
if(SWIG_FOUND)
6772
# Load Modules/UseSWIG.cmake

0 commit comments

Comments
 (0)