From 5ee1d76c1229c34e42499ceac3de08a200700937 Mon Sep 17 00:00:00 2001 From: looooo Date: Mon, 14 Jan 2019 13:32:12 +0100 Subject: [PATCH] remove python linking --- libsrc/csg/CMakeLists.txt | 4 ++-- libsrc/geom2d/CMakeLists.txt | 2 +- libsrc/meshing/CMakeLists.txt | 2 +- libsrc/occ/CMakeLists.txt | 2 +- libsrc/stlgeom/CMakeLists.txt | 4 ++-- libsrc/visualization/CMakeLists.txt | 2 +- ng/CMakeLists.txt | 2 +- nglib/CMakeLists.txt | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/libsrc/csg/CMakeLists.txt b/libsrc/csg/CMakeLists.txt index 224a48e4..1e2611e3 100644 --- a/libsrc/csg/CMakeLists.txt +++ b/libsrc/csg/CMakeLists.txt @@ -12,8 +12,8 @@ if(APPLE) endif(APPLE) if(NOT WIN32) - target_link_libraries(csg mesh ${PYTHON_LIBRARIES}) - target_link_libraries(csg ${PYTHON_LIBRARIES}) + target_link_libraries(csg mesh) + target_link_libraries(csg) install( TARGETS csg ${NG_INSTALL_DIR}) endif(NOT WIN32) diff --git a/libsrc/geom2d/CMakeLists.txt b/libsrc/geom2d/CMakeLists.txt index 754c79fb..64cd161f 100644 --- a/libsrc/geom2d/CMakeLists.txt +++ b/libsrc/geom2d/CMakeLists.txt @@ -5,7 +5,7 @@ if(APPLE) endif(APPLE) if(NOT WIN32) - target_link_libraries(geom2d mesh ${PYTHON_LIBRARIES}) + target_link_libraries(geom2d mesh) install( TARGETS geom2d ${NG_INSTALL_DIR}) endif(NOT WIN32) diff --git a/libsrc/meshing/CMakeLists.txt b/libsrc/meshing/CMakeLists.txt index e9e6e211..1b61ef3d 100644 --- a/libsrc/meshing/CMakeLists.txt +++ b/libsrc/meshing/CMakeLists.txt @@ -30,7 +30,7 @@ if(APPLE) endif(APPLE) if(NOT WIN32) - target_link_libraries( mesh ${ZLIB_LIBRARIES} ${MPI_CXX_LIBRARIES} ${PYTHON_LIBRARIES} ${METIS_LIBRARY}) + target_link_libraries( mesh ${ZLIB_LIBRARIES} ${MPI_CXX_LIBRARIES} ${METIS_LIBRARY}) install( TARGETS mesh ${NG_INSTALL_DIR}) endif(NOT WIN32) diff --git a/libsrc/occ/CMakeLists.txt b/libsrc/occ/CMakeLists.txt index 831a3875..2476585d 100644 --- a/libsrc/occ/CMakeLists.txt +++ b/libsrc/occ/CMakeLists.txt @@ -9,7 +9,7 @@ if(USE_GUI) endif(USE_GUI) if(NOT WIN32) - target_link_libraries( occ ${OCC_LIBRARIES} ${PYTHON_LIBRARIES}) + target_link_libraries( occ ${OCC_LIBRARIES}) install( TARGETS occ ${NG_INSTALL_DIR}) if (USE_GUI) target_link_libraries( occvis occ ) diff --git a/libsrc/stlgeom/CMakeLists.txt b/libsrc/stlgeom/CMakeLists.txt index 3620c496..fa49e3aa 100644 --- a/libsrc/stlgeom/CMakeLists.txt +++ b/libsrc/stlgeom/CMakeLists.txt @@ -4,8 +4,8 @@ add_library(stl ${NG_LIB_TYPE} ) if(NOT WIN32) - target_link_libraries( stl mesh ${PYTHON_LIBRARIES}) - target_link_libraries( stl ${PYTHON_LIBRARIES}) + target_link_libraries( stl mesh ) + target_link_libraries( stl) install( TARGETS stl ${NG_INSTALL_DIR}) endif(NOT WIN32) diff --git a/libsrc/visualization/CMakeLists.txt b/libsrc/visualization/CMakeLists.txt index 8f803d92..897a1323 100644 --- a/libsrc/visualization/CMakeLists.txt +++ b/libsrc/visualization/CMakeLists.txt @@ -10,7 +10,7 @@ endif(USE_GUI) add_library(visual ${NG_LIB_TYPE} ${LIB_VISUAL_SOURCES}) if(NOT WIN32) - target_link_libraries( visual ${PYTHON_LIBRARIES} ${MPI_CXX_LIBRARIES} ${OPENGL_LIBRARIES} ) + target_link_libraries( visual ${MPI_CXX_LIBRARIES} ${OPENGL_LIBRARIES} ) install( TARGETS visual ${NG_INSTALL_DIR}) endif(NOT WIN32) diff --git a/ng/CMakeLists.txt b/ng/CMakeLists.txt index 86c83365..4750c2d1 100644 --- a/ng/CMakeLists.txt +++ b/ng/CMakeLists.txt @@ -51,7 +51,7 @@ endif(USE_GUI) if(USE_PYTHON) add_library(ngpy SHARED netgenpy.cpp) - target_link_libraries( ngpy PUBLIC nglib PRIVATE ${PYTHON_LIBRARIES}) + target_link_libraries( ngpy PUBLIC nglib PRIVATE) if(APPLE) set_target_properties( ngpy PROPERTIES SUFFIX ".so") elseif(WIN32) diff --git a/nglib/CMakeLists.txt b/nglib/CMakeLists.txt index 5429ffe6..6fbe4876 100644 --- a/nglib/CMakeLists.txt +++ b/nglib/CMakeLists.txt @@ -39,7 +39,7 @@ if(USE_OCC AND NOT WIN32) endif(USE_OCC AND NOT WIN32) if(USE_PYTHON) - target_link_libraries(nglib PRIVATE ${PYTHON_LIBRARIES}) + target_link_libraries(nglib PRIVATE) endif(USE_PYTHON) install(TARGETS nglib ${NG_INSTALL_DIR})