CMake: dtoolbase/dtoolutil may need to link against Python.

This commit is contained in:
Sam Edwards 2014-02-04 11:28:06 -07:00
parent de9ea2a750
commit 2a85cd7a5b
2 changed files with 6 additions and 1 deletions

View File

@ -62,4 +62,6 @@ set(P3DTOOLBASE_SOURCES
composite_sources(p3dtoolbase P3DTOOLBASE_SOURCES)
add_library(p3dtoolbase ${P3DTOOLBASE_HEADERS} ${P3DTOOLBASE_SOURCES})
if(HAVE_PYTHON)
target_link_libraries(p3dtoolbase ${PYTHON_LIBRARIES})
endif()

View File

@ -52,3 +52,6 @@ composite_sources(p3dtoolutil P3DTOOLUTIL_SOURCES)
add_library(p3dtoolutil ${P3DTOOLUTIL_HEADERS} ${P3DTOOLUTIL_SOURCES})
target_link_libraries(p3dtoolutil p3dtoolbase ${CMAKE_DL_LIBS})
if(HAVE_PYTHON)
target_link_libraries(p3dtoolutil ${PYTHON_LIBRARIES})
endif()