From 5f466353d1bd47a5218a42571c8fb6c1557606b8 Mon Sep 17 00:00:00 2001 From: mzn Date: Mon, 20 Aug 2018 14:16:27 +0300 Subject: [PATCH] Replace deprecated SWIG_ADD_MODULE with SWIG_ADD_LIBRARY. --- src/BuildAPI/CMakeLists.txt | 2 +- src/CollectionAPI/CMakeLists.txt | 2 +- src/Config/CMakeLists.txt | 2 +- src/ConnectorAPI/CMakeLists.txt | 2 +- src/ConstructionAPI/CMakeLists.txt | 2 +- src/Events/CMakeLists.txt | 2 +- src/ExchangeAPI/CMakeLists.txt | 2 +- src/FeaturesAPI/CMakeLists.txt | 2 +- src/GDMLAPI/CMakeLists.txt | 2 +- src/GeomAPI/CMakeLists.txt | 2 +- src/GeomAlgoAPI/CMakeLists.txt | 2 +- src/GeomDataAPI/CMakeLists.txt | 2 +- src/ModelAPI/CMakeLists.txt | 2 +- src/ModelGeomAlgo/CMakeLists.txt | 2 +- src/ModelHighAPI/CMakeLists.txt | 2 +- src/ParametersAPI/CMakeLists.txt | 2 +- src/PartSetAPI/CMakeLists.txt | 2 +- src/PrimitivesAPI/CMakeLists.txt | 2 +- src/SketchAPI/CMakeLists.txt | 2 +- 19 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/BuildAPI/CMakeLists.txt b/src/BuildAPI/CMakeLists.txt index 0cc22fed3..a88ab8eb6 100644 --- a/src/BuildAPI/CMakeLists.txt +++ b/src/BuildAPI/CMakeLists.txt @@ -96,7 +96,7 @@ SET(SWIG_MODULE_BuildAPI_EXTRA_DEPS ${SWIG_MODULE_BuildAPI_EXTRA_DEPS} ${PROJECT_HEADERS} ) -SWIG_ADD_MODULE(BuildAPI python BuildAPI.i ${PROJECT_HEADERS}) +SWIG_ADD_LIBRARY(BuildAPI LANGUAGE python SOURCES BuildAPI.i ${PROJECT_HEADERS}) SWIG_LINK_LIBRARIES(BuildAPI ${SWIG_LINK_LIBRARIES}) IF(WIN32) diff --git a/src/CollectionAPI/CMakeLists.txt b/src/CollectionAPI/CMakeLists.txt index 935c38bfb..88990237f 100644 --- a/src/CollectionAPI/CMakeLists.txt +++ b/src/CollectionAPI/CMakeLists.txt @@ -74,7 +74,7 @@ SET(SWIG_MODULE_CollectionAPI_EXTRA_DEPS ${SWIG_MODULE_CollectionAPI_EXTRA_DEPS} ${PROJECT_HEADERS} ) -SWIG_ADD_MODULE(CollectionAPI python CollectionAPI.i ${PROJECT_HEADERS}) +SWIG_ADD_LIBRARY(CollectionAPI LANGUAGE python SOURCES CollectionAPI.i ${PROJECT_HEADERS}) SWIG_LINK_LIBRARIES(CollectionAPI ${SWIG_LINK_LIBRARIES}) IF(WIN32) diff --git a/src/Config/CMakeLists.txt b/src/Config/CMakeLists.txt index e120e21b8..068609e63 100644 --- a/src/Config/CMakeLists.txt +++ b/src/Config/CMakeLists.txt @@ -76,7 +76,7 @@ SET(SWIG_LINK_LIBRARIES Config ${PYTHON_LIBRARIES} ) -SWIG_ADD_MODULE(ConfigAPI python ConfigAPI.i ${PROJECT_HEADERS}) +SWIG_ADD_LIBRARY(ConfigAPI LANGUAGE python SOURCES ConfigAPI.i ${PROJECT_HEADERS}) SWIG_LINK_LIBRARIES(ConfigAPI ${SWIG_LINK_LIBRARIES}) IF(WIN32) SET_TARGET_PROPERTIES(_ConfigAPI PROPERTIES DEBUG_OUTPUT_NAME _ConfigAPI_d) diff --git a/src/ConnectorAPI/CMakeLists.txt b/src/ConnectorAPI/CMakeLists.txt index 99f15351a..291700cef 100644 --- a/src/ConnectorAPI/CMakeLists.txt +++ b/src/ConnectorAPI/CMakeLists.txt @@ -75,7 +75,7 @@ SET(SWIG_MODULE_ConnectorAPI_EXTRA_DEPS ${SWIG_MODULE_ConnectorAPI_EXTRA_DEPS} ${PROJECT_HEADERS} ) -SWIG_ADD_MODULE(ConnectorAPI python ConnectorAPI.i ${PROJECT_HEADERS}) +SWIG_ADD_LIBRARY(ConnectorAPI LANGUAGE python SOURCES ConnectorAPI.i ${PROJECT_HEADERS}) SWIG_LINK_LIBRARIES(ConnectorAPI ${SWIG_LINK_LIBRARIES}) IF(WIN32) diff --git a/src/ConstructionAPI/CMakeLists.txt b/src/ConstructionAPI/CMakeLists.txt index 18830093d..985455f22 100644 --- a/src/ConstructionAPI/CMakeLists.txt +++ b/src/ConstructionAPI/CMakeLists.txt @@ -79,7 +79,7 @@ SET(SWIG_MODULE_ConstructionAPI_EXTRA_DEPS ${SWIG_MODULE_ConstructionAPI_EXTRA_D ${PROJECT_HEADERS} ) -SWIG_ADD_MODULE(ConstructionAPI python ConstructionAPI.i ${PROJECT_HEADERS}) +SWIG_ADD_LIBRARY(ConstructionAPI LANGUAGE python SOURCES ConstructionAPI.i ${PROJECT_HEADERS}) SWIG_LINK_LIBRARIES(ConstructionAPI ${SWIG_LINK_LIBRARIES}) IF(WIN32) diff --git a/src/Events/CMakeLists.txt b/src/Events/CMakeLists.txt index 574e12f99..f20acfdea 100644 --- a/src/Events/CMakeLists.txt +++ b/src/Events/CMakeLists.txt @@ -64,7 +64,7 @@ SET(SWIG_LINK_LIBRARIES ${PYTHON_LIBRARIES} ) -SWIG_ADD_MODULE(EventsAPI python Events.i ${PROJECT_HEADERS}) +SWIG_ADD_LIBRARY(EventsAPI LANGUAGE python SOURCES Events.i ${PROJECT_HEADERS}) SWIG_LINK_LIBRARIES(EventsAPI ${SWIG_LINK_LIBRARIES}) IF(WIN32) diff --git a/src/ExchangeAPI/CMakeLists.txt b/src/ExchangeAPI/CMakeLists.txt index 40e5d303a..08c4e8cb1 100644 --- a/src/ExchangeAPI/CMakeLists.txt +++ b/src/ExchangeAPI/CMakeLists.txt @@ -76,7 +76,7 @@ SET(SWIG_MODULE_ExchangeAPI_EXTRA_DEPS ${SWIG_MODULE_ExchangeAPI_EXTRA_DEPS} ${PROJECT_HEADERS} ) -SWIG_ADD_MODULE(ExchangeAPI python ExchangeAPI.i ${PROJECT_HEADERS}) +SWIG_ADD_LIBRARY(ExchangeAPI LANGUAGE python SOURCES ExchangeAPI.i ${PROJECT_HEADERS}) SWIG_LINK_LIBRARIES(ExchangeAPI ${SWIG_LINK_LIBRARIES}) IF(WIN32) diff --git a/src/FeaturesAPI/CMakeLists.txt b/src/FeaturesAPI/CMakeLists.txt index b511fc640..e44030e64 100644 --- a/src/FeaturesAPI/CMakeLists.txt +++ b/src/FeaturesAPI/CMakeLists.txt @@ -118,7 +118,7 @@ SET(SWIG_MODULE_FeaturesAPI_EXTRA_DEPS ${SWIG_MODULE_FeaturesAPI_EXTRA_DEPS} ${PROJECT_HEADERS} ) -SWIG_ADD_MODULE(FeaturesAPI python FeaturesAPI.i ${PROJECT_HEADERS}) +SWIG_ADD_LIBRARY(FeaturesAPI LANGUAGE python SOURCES FeaturesAPI.i ${PROJECT_HEADERS}) SWIG_LINK_LIBRARIES(FeaturesAPI ${SWIG_LINK_LIBRARIES}) IF(WIN32) diff --git a/src/GDMLAPI/CMakeLists.txt b/src/GDMLAPI/CMakeLists.txt index 6654525fa..eea7900cb 100644 --- a/src/GDMLAPI/CMakeLists.txt +++ b/src/GDMLAPI/CMakeLists.txt @@ -74,7 +74,7 @@ SET(SWIG_MODULE_GDMLAPI_EXTRA_DEPS ${SWIG_MODULE_GDMLAPI_EXTRA_DEPS} ${PROJECT_HEADERS} ) -SWIG_ADD_MODULE(GDMLAPI python GDMLAPI.i ${PROJECT_HEADERS}) +SWIG_ADD_LIBRARY(GDMLAPI LANGUAGE python SOURCES GDMLAPI.i ${PROJECT_HEADERS}) SWIG_LINK_LIBRARIES(GDMLAPI ${SWIG_LINK_LIBRARIES}) IF(WIN32) diff --git a/src/GeomAPI/CMakeLists.txt b/src/GeomAPI/CMakeLists.txt index 01594414d..f74506b6c 100644 --- a/src/GeomAPI/CMakeLists.txt +++ b/src/GeomAPI/CMakeLists.txt @@ -132,7 +132,7 @@ SET(SWIG_LINK_LIBRARIES ${PYTHON_LIBRARIES} ) -SWIG_ADD_MODULE(GeomAPI python GeomAPI.i ${PROJECT_HEADERS}) +SWIG_ADD_LIBRARY(GeomAPI LANGUAGE python SOURCES GeomAPI.i ${PROJECT_HEADERS}) SWIG_LINK_LIBRARIES(GeomAPI ${SWIG_LINK_LIBRARIES}) IF(WIN32) diff --git a/src/GeomAlgoAPI/CMakeLists.txt b/src/GeomAlgoAPI/CMakeLists.txt index f24b06d69..97eb347d2 100644 --- a/src/GeomAlgoAPI/CMakeLists.txt +++ b/src/GeomAlgoAPI/CMakeLists.txt @@ -189,7 +189,7 @@ SET(SWIG_LINK_LIBRARIES ${PYTHON_LIBRARIES} ) -SWIG_ADD_MODULE(GeomAlgoAPI python GeomAlgoAPI.i ${PROJECT_HEADERS}) +SWIG_ADD_LIBRARY(GeomAlgoAPI LANGUAGE python SOURCES GeomAlgoAPI.i ${PROJECT_HEADERS}) SWIG_LINK_LIBRARIES(GeomAlgoAPI ${SWIG_LINK_LIBRARIES}) IF(WIN32) diff --git a/src/GeomDataAPI/CMakeLists.txt b/src/GeomDataAPI/CMakeLists.txt index 90e0654b5..d975ae0b0 100644 --- a/src/GeomDataAPI/CMakeLists.txt +++ b/src/GeomDataAPI/CMakeLists.txt @@ -64,7 +64,7 @@ SET(SWIG_LINK_LIBRARIES ${PYTHON_LIBRARIES} ) -SWIG_ADD_MODULE(GeomDataAPI python GeomDataAPI.i ${PROJECT_HEADERS}) +SWIG_ADD_LIBRARY(GeomDataAPI LANGUAGE python SOURCES GeomDataAPI.i ${PROJECT_HEADERS}) SWIG_LINK_LIBRARIES(GeomDataAPI ${SWIG_LINK_LIBRARIES}) IF(WIN32) diff --git a/src/ModelAPI/CMakeLists.txt b/src/ModelAPI/CMakeLists.txt index fbcb4a777..f10b3bf67 100644 --- a/src/ModelAPI/CMakeLists.txt +++ b/src/ModelAPI/CMakeLists.txt @@ -146,7 +146,7 @@ SET(SWIG_LINK_LIBRARIES ${PYTHON_LIBRARIES} ) -SWIG_ADD_MODULE(ModelAPI python ModelAPI.i ${PROJECT_HEADERS}) +SWIG_ADD_LIBRARY(ModelAPI LANGUAGE python SOURCES ModelAPI.i ${PROJECT_HEADERS}) SWIG_LINK_LIBRARIES(ModelAPI ${SWIG_LINK_LIBRARIES}) IF(WIN32) diff --git a/src/ModelGeomAlgo/CMakeLists.txt b/src/ModelGeomAlgo/CMakeLists.txt index b6cdf135b..bc994a02e 100755 --- a/src/ModelGeomAlgo/CMakeLists.txt +++ b/src/ModelGeomAlgo/CMakeLists.txt @@ -74,7 +74,7 @@ SET(SWIG_LINK_LIBRARIES ${PYTHON_LIBRARIES} ) -SWIG_ADD_MODULE(ModelGeomAlgo python ModelGeomAlgo.i ${PROJECT_HEADERS}) +SWIG_ADD_LIBRARY(ModelGeomAlgo LANGUAGE python SOURCES ModelGeomAlgo.i ${PROJECT_HEADERS}) SWIG_LINK_LIBRARIES(ModelGeomAlgo ${SWIG_LINK_LIBRARIES}) IF(WIN32) diff --git a/src/ModelHighAPI/CMakeLists.txt b/src/ModelHighAPI/CMakeLists.txt index 9c0ce38a1..0bc3eb013 100644 --- a/src/ModelHighAPI/CMakeLists.txt +++ b/src/ModelHighAPI/CMakeLists.txt @@ -93,7 +93,7 @@ set(SWIG_MODULE_ModelHighAPI_EXTRA_DEPS ${PROJECT_HEADERS} ) -SWIG_ADD_MODULE(ModelHighAPI python ModelHighAPI.i ${PROJECT_HEADERS}) +SWIG_ADD_LIBRARY(ModelHighAPI LANGUAGE python SOURCES ModelHighAPI.i ${PROJECT_HEADERS}) SWIG_LINK_LIBRARIES(ModelHighAPI ${SWIG_LINK_LIBRARIES}) IF(WIN32) diff --git a/src/ParametersAPI/CMakeLists.txt b/src/ParametersAPI/CMakeLists.txt index bad153b70..926344bd5 100644 --- a/src/ParametersAPI/CMakeLists.txt +++ b/src/ParametersAPI/CMakeLists.txt @@ -75,7 +75,7 @@ SET(SWIG_MODULE_ParametersAPI_EXTRA_DEPS ${SWIG_MODULE_ParametersAPI_EXTRA_DEPS} ${PROJECT_HEADERS} ) -SWIG_ADD_MODULE(ParametersAPI python ParametersAPI.i ${PROJECT_HEADERS}) +SWIG_ADD_LIBRARY(ParametersAPI LANGUAGE python SOURCES ParametersAPI.i ${PROJECT_HEADERS}) SWIG_LINK_LIBRARIES(ParametersAPI ${SWIG_LINK_LIBRARIES}) IF(WIN32) diff --git a/src/PartSetAPI/CMakeLists.txt b/src/PartSetAPI/CMakeLists.txt index 265571df5..6747370c7 100644 --- a/src/PartSetAPI/CMakeLists.txt +++ b/src/PartSetAPI/CMakeLists.txt @@ -76,7 +76,7 @@ SET(SWIG_MODULE_PartSetAPI_EXTRA_DEPS ${SWIG_MODULE_PartSetAPI_EXTRA_DEPS} ${PROJECT_HEADERS} ) -SWIG_ADD_MODULE(PartSetAPI python PartSetAPI.i ${PROJECT_HEADERS}) +SWIG_ADD_LIBRARY(PartSetAPI LANGUAGE python SOURCES PartSetAPI.i ${PROJECT_HEADERS}) SWIG_LINK_LIBRARIES(PartSetAPI ${SWIG_LINK_LIBRARIES}) IF(WIN32) diff --git a/src/PrimitivesAPI/CMakeLists.txt b/src/PrimitivesAPI/CMakeLists.txt index 82f6558b0..b49f75384 100644 --- a/src/PrimitivesAPI/CMakeLists.txt +++ b/src/PrimitivesAPI/CMakeLists.txt @@ -80,7 +80,7 @@ SET(SWIG_MODULE_PrimitivesAPI_EXTRA_DEPS ${SWIG_MODULE_PrimitivesAPI_EXTRA_DEPS} ${PROJECT_HEADERS} ) -SWIG_ADD_MODULE(PrimitivesAPI python PrimitivesAPI.i ${PROJECT_HEADERS}) +SWIG_ADD_LIBRARY(PrimitivesAPI LANGUAGE python SOURCES PrimitivesAPI.i ${PROJECT_HEADERS}) SWIG_LINK_LIBRARIES(PrimitivesAPI ${SWIG_LINK_LIBRARIES}) IF(WIN32) diff --git a/src/SketchAPI/CMakeLists.txt b/src/SketchAPI/CMakeLists.txt index c647ef0e6..d7cc664ab 100644 --- a/src/SketchAPI/CMakeLists.txt +++ b/src/SketchAPI/CMakeLists.txt @@ -105,7 +105,7 @@ SET(SWIG_MODULE_SketchAPI_EXTRA_DEPS ${SWIG_MODULE_SketchAPI_EXTRA_DEPS} ${PROJECT_HEADERS} ) -SWIG_ADD_MODULE(SketchAPI python SketchAPI.i ${PROJECT_HEADERS}) +SWIG_ADD_LIBRARY(SketchAPI LANGUAGE python SOURCES SketchAPI.i ${PROJECT_HEADERS}) SWIG_LINK_LIBRARIES(SketchAPI ${SWIG_LINK_LIBRARIES}) IF(WIN32) -- 2.39.2