Эх сурвалжийг харах

Merge pull request #689 from Gjacquenot/master

Fixed Python CMakeLists.txt for CMake 3.10.0

Former-commit-id: c9310ff821a5d4c1d41df56aa14287d3be9ff68c
Jérémie Dumas 7 жил өмнө
parent
commit
c1a8e7d9ac
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      python/CMakeLists.txt

+ 2 - 2
python/CMakeLists.txt

@@ -126,7 +126,7 @@ if(WIN32)
   # Link against the Python shared library
   # message(FATAL_ERROR ${PYTHON_LIBRARY})
   # target_link_libraries(igl ${PYTHON_LIBRARY})
-  target_link_libraries(pyigl ${PYTHON_LIBRARIES})
+  target_link_libraries(pyigl PRIVATE ${PYTHON_LIBRARIES})
 
 elseif(UNIX)
   # It's quite common to have multiple copies of the same Python version
@@ -161,7 +161,7 @@ elseif(UNIX)
   else()
 
     if(CHECK_UNDEFINED)
-      target_link_libraries(pyigl ${PYTHON_LIBRARIES})
+      target_link_libraries(pyigl PRIVATE ${PYTHON_LIBRARIES})
       set_target_properties(pyigl PROPERTIES LINK_FLAGS "-Wl,--no-undefined")
     endif()