mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -04:00
CMake: Don't export(PACKAGE) when cross-compiling
When cross-compiling, the build directory won't contain anything useful to the host system. Therefore, we shouldn't register the build directory in CMake's package registry.
This commit is contained in:
parent
059c78bade
commit
d058cb16fd
@ -114,4 +114,6 @@ write_basic_package_version_file(
|
||||
install(FILES "${PROJECT_BINARY_DIR}/Panda3DConfigVersion.cmake"
|
||||
DESTINATION "lib/cmake/Panda3D")
|
||||
|
||||
export(PACKAGE Panda3D)
|
||||
if(NOT CMAKE_CROSSCOMPILING)
|
||||
export(PACKAGE Panda3D)
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user