mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 00:06:44 -04:00
CMake: Some more changes to p3pystub
- Don't build it at all on Win32 where it isn't needed - Don't link it into interrogate_module (oops, missed that)
This commit is contained in:
parent
c16092fe8a
commit
896a8dbca5
@ -76,7 +76,7 @@ add_custom_command(
|
||||
|
||||
add_executable(interrogate_module interrogate_module.cxx
|
||||
${CMAKE_CURRENT_BINARY_DIR}/interrogate_preamble_python_native.cxx)
|
||||
target_link_libraries(interrogate_module p3cppParser p3dtoolconfig p3pystub
|
||||
target_link_libraries(interrogate_module p3cppParser p3dtoolconfig
|
||||
PKG::OPENSSL)
|
||||
|
||||
if(NOT CMAKE_CROSSCOMPILING)
|
||||
|
@ -1,6 +1,11 @@
|
||||
set(P3PYSTUB_HEADERS pystub.h)
|
||||
set(P3PYSTUB_SOURCES pystub.cxx)
|
||||
|
||||
if(WIN32)
|
||||
# Win32 doesn't actually need this hack
|
||||
add_library(p3pystub INTERFACE)
|
||||
|
||||
else()
|
||||
add_library(p3pystub ${P3PYSTUB_HEADERS} ${P3PYSTUB_SOURCES})
|
||||
target_link_libraries(p3pystub p3dtool)
|
||||
install(FILES ${P3PYSTUB_HEADERS} COMPONENT CoreDevel DESTINATION include/panda3d)
|
||||
@ -9,3 +14,5 @@ install(TARGETS p3pystub
|
||||
DESTINATION lib
|
||||
RUNTIME DESTINATION bin
|
||||
ARCHIVE COMPONENT CoreDevel)
|
||||
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user