[CMake] CMake and SWIG

Caron, Michael C. (US SSA) michael.caron at baesystems.com
Thu Mar 18 15:32:08 EDT 2010


I'm just starting to try and get CMake and SWIG to play nice together.  All I've done is add:

FIND_PACKAGE(SWIG REQUIRED)

to an existing CMakeLists.txt file that has worked before now.  With only this addition I get:

CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindSWIG.cmake:68 (MESSAGE):
  SWIG was not found.  Please specify Swig executable location
Call Stack (most recent call first):
  SAIL/InterfaceLibrary/Source/CMakeLists.txt:34 (FIND_PACKAGE)

The SWIG install basically says unzip the swig.exe anywhere you like.  I've tried putting it in c:, I've put it in c:/SWIG, I've added the directory to my path, I get the same error.  I know this is something stupid (like did you set your SWIG_LOCATION environment variable), but neither CMake nor SWIG mention anything about where CMake is trying to find SWIG or even how it is trying to find SWIG.

Can anyone give me a push in the right direction?

-Mike
Nothing is impossible for the man who doesn't have to do it himself.
-A. H. Weiler
Ops Analysis (BAE Internal) wiki site: http://bluas0752/display/EWOA/Home



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100318/f5c2ff9f/attachment.htm>


More information about the CMake mailing list