You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has been automatically locked since there has not been any recent activity since it was closed.
To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues
including a reference to this.
Summary
Starting with
cmake
3.8, compilation of SWIG targets for LightGBM raises the following deprecation warning.The project should be modified to avoid that warning.
Motivation
Removes a warning in compilation logs, reducing the risk of other important information being missed.
Reduces the risk of LightGBM SWIG compilation failing on future releases of CMake where
SWIG_ADD_MODULE()
is removed.Description
Replace uses of
SWIG_ADD_MODULE()
inCMakeLists.txt
withSWIG_ADD_LIBRARY()
.the minimum required version for CMake should be increased to 3.8 when compiling the SWIG targets.
LightGBM/CMakeLists.txt
Lines 28 to 36 in f1d3181
References
SWIG_ADD_LIBRARY()
has been available since CMake 3.8 (docs link), which was released in November 2018 (release details).The text was updated successfully, but these errors were encountered: