Merge topic 'fixbug0011843'

55b7c87 Add support for new swig 2.0 application
This commit is contained in:
Brad King 2011-04-12 14:43:48 -04:00 committed by CMake Topic Stage
commit f464eb203e
1 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@
#============================================================================= #=============================================================================
# Copyright 2004-2009 Kitware, Inc. # Copyright 2004-2009 Kitware, Inc.
# Copyright 2011 Mathieu Malaterre <mathieu.malaterre@gmail.com>
# #
# Distributed under the OSI-approved BSD License (the "License"); # Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details. # see accompanying file Copyright.txt for details.
@ -26,7 +27,7 @@
# (To distribute this file outside of CMake, substitute the full # (To distribute this file outside of CMake, substitute the full
# License text for the above reference.) # License text for the above reference.)
FIND_PROGRAM(SWIG_EXECUTABLE swig) FIND_PROGRAM(SWIG_EXECUTABLE swig2.0 swig)
IF(SWIG_EXECUTABLE) IF(SWIG_EXECUTABLE)
EXECUTE_PROCESS(COMMAND ${SWIG_EXECUTABLE} -swiglib EXECUTE_PROCESS(COMMAND ${SWIG_EXECUTABLE} -swiglib