The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=15480
======================================================================
Reported By: Felix Schwitzer
Assigned To:
======================================================================
Project: CMake
Issue ID: 15480
Category: CMake
Reproducibility: have not tried
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2015-03-27 17:07 EDT
Last Modified: 2015-03-27 17:07 EDT
======================================================================
Summary: UseSWIG.cmake warns about CMP0057
Description:
When calling swig_add_module (from module UseSWIG) with the same interface file
for different scripting languages, cmake emits a warning about CMP0057 as
swig_add_module adds the interface file as MAIN_DEPENDENCY to the generated
wrapper file.
This happens with an actual cmake from master (7910cb7);
see http://article.gmane.org/gmane.comp.programming.tools.cmake.devel/12835
I added a minimal example to reproduce and a patch
Steps to Reproduce:
unpack the attached example tst.tgz and change into the directory tst, then
mkdir build && cd build && cmake ..
Without patching cmake fails as CMP0057 is set to new. With the patch the
command runs fine.
On a system with swig, ruby-dev and python-dev installed, compilation should run
fine and also the dependencies are kept right:
make
-> runs swig and compiles the wrappers
touch ../ltt.i && make
-> runs swig again and compiles the wrappers
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-03-27 17:07 Felix SchwitzerNew Issue
2015-03-27 17:07 Felix SchwitzerFile Added: tst.tgz
======================================================================
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers