mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
CMake: Ugh, just give p3distributed a dummy .cxx instead
Windows won't even create the .lib unless there's at least one source file. Whatever, this is easy to do.
This commit is contained in:
parent
d008037244
commit
31c9a88dcf
@ -16,9 +16,12 @@ set(P3DISTRIBUTED_SOURCES
|
|||||||
cDistributedSmoothNodeBase.cxx
|
cDistributedSmoothNodeBase.cxx
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Workaround for Windows which just *insists* on having something to build
|
||||||
|
set(P3DISTRIBUTED_EMPTY "${CMAKE_CURRENT_BINARY_DIR}/empty.cxx")
|
||||||
|
file(WRITE ${P3DISTRIBUTED_EMPTY} "")
|
||||||
|
|
||||||
add_component_library(p3distributed NOINIT SYMBOL BUILDING_DIRECT_DISTRIBUTED
|
add_component_library(p3distributed NOINIT SYMBOL BUILDING_DIRECT_DISTRIBUTED
|
||||||
${P3DISTRIBUTED_HEADERS})
|
${P3DISTRIBUTED_HEADERS} ${P3DISTRIBUTED_EMPTY})
|
||||||
set_target_properties(p3distributed PROPERTIES LINKER_LANGUAGE CXX)
|
|
||||||
target_link_libraries(p3distributed p3directbase p3dcparser panda)
|
target_link_libraries(p3distributed p3directbase p3dcparser panda)
|
||||||
target_interrogate(p3distributed ALL EXTENSIONS ${P3DISTRIBUTED_SOURCES})
|
target_interrogate(p3distributed ALL EXTENSIONS ${P3DISTRIBUTED_SOURCES})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user