diff options
author | Sylvain Joubert <joubert.sy@gmail.com> | 2014-07-05 12:55:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-07-07 13:18:50 (GMT) |
commit | 7400695ee3dbe0375876c7ffc2b68f356142ae79 (patch) | |
tree | 36b8d0bb04ff910f325c721f235e3e1ffde6e833 /Modules/FindSWIG.cmake | |
parent | 61be345115b5f2c402286be7fa3e6df0c2f5f0ac (diff) | |
download | CMake-7400695ee3dbe0375876c7ffc2b68f356142ae79.zip CMake-7400695ee3dbe0375876c7ffc2b68f356142ae79.tar.gz CMake-7400695ee3dbe0375876c7ffc2b68f356142ae79.tar.bz2 |
FindSWIG: Add support for swig 3.0 application
Diffstat (limited to 'Modules/FindSWIG.cmake')
-rw-r--r-- | Modules/FindSWIG.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/FindSWIG.cmake b/Modules/FindSWIG.cmake index 8bd4048..818d1f2 100644 --- a/Modules/FindSWIG.cmake +++ b/Modules/FindSWIG.cmake @@ -25,6 +25,7 @@ #============================================================================= # Copyright 2004-2009 Kitware, Inc. # Copyright 2011 Mathieu Malaterre <mathieu.malaterre@gmail.com> +# Copyright 2014 Sylvain Joubert <joubert.sy@gmail.com> # # Distributed under the OSI-approved BSD License (the "License"); # see accompanying file Copyright.txt for details. @@ -36,7 +37,7 @@ # (To distribute this file outside of CMake, substitute the full # License text for the above reference.) -find_program(SWIG_EXECUTABLE NAMES swig2.0 swig) +find_program(SWIG_EXECUTABLE NAMES swig3.0 swig2.0 swig) if(SWIG_EXECUTABLE) execute_process(COMMAND ${SWIG_EXECUTABLE} -swiglib |