summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/FindSWIG/components.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/FindSWIG/components.cmake')
-rw-r--r--Tests/RunCMake/FindSWIG/components.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/FindSWIG/components.cmake b/Tests/RunCMake/FindSWIG/components.cmake
new file mode 100644
index 0000000..b79a81e
--- /dev/null
+++ b/Tests/RunCMake/FindSWIG/components.cmake
@@ -0,0 +1,9 @@
+# Note that 'perl' will not be found because it is not lowercase.
+find_package(SWIG REQUIRED
+ COMPONENTS java
+ OPTIONAL_COMPONENTS python PERL)
+
+message(STATUS "SWIG_VERSION='${SWIG_VERSION}'")
+foreach(_lang java python PERL)
+ message(STATUS "SWIG_${_lang}_FOUND=${SWIG_${_lang}_FOUND}")
+endforeach()