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



_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to