mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
CMake: Don't metalib p3distributed when not built
This commit is contained in:
parent
e05380509b
commit
4b70cb162e
@ -17,7 +17,13 @@ add_subdirectory(src/interval)
|
|||||||
add_subdirectory(src/showbase)
|
add_subdirectory(src/showbase)
|
||||||
|
|
||||||
# TODO: p3direct needs a source file!
|
# TODO: p3direct needs a source file!
|
||||||
add_metalib(p3direct COMPONENTS p3dcparser p3deadrec p3distributed p3interval p3showbase)
|
set(P3DIRECT_COMPONENTS
|
||||||
|
p3dcparser p3deadrec
|
||||||
|
p3interval p3showbase)
|
||||||
|
if(HAVE_PYTHON)
|
||||||
|
list(APPEND P3DIRECT_COMPONENTS p3distributed)
|
||||||
|
endif()
|
||||||
|
add_metalib(p3direct COMPONENTS ${P3DIRECT_COMPONENTS})
|
||||||
set_property(TARGET p3direct PROPERTY LINKER_LANGUAGE "CXX")
|
set_property(TARGET p3direct PROPERTY LINKER_LANGUAGE "CXX")
|
||||||
|
|
||||||
if(HAVE_PYTHON)
|
if(HAVE_PYTHON)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user