mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 00:32:57 -04:00
CMake: Autodetect THIRDPARTY_DIRECTORY when in source root
This commit is contained in:
parent
d0b8593e96
commit
151d51ef09
@ -1,4 +1,9 @@
|
||||
set(THIRDPARTY_DIRECTORY "" CACHE PATH
|
||||
set(_thirdparty_dir_default "${PROJECT_SOURCE_DIR}/thirdparty")
|
||||
if(NOT (APPLE OR WIN32) OR NOT IS_DIRECTORY "${_thirdparty_dir_default}")
|
||||
set(_thirdparty_dir_default "")
|
||||
endif()
|
||||
|
||||
set(THIRDPARTY_DIRECTORY "${_thirdparty_dir_default}" CACHE PATH
|
||||
"Optional location of a makepanda-style thirdparty directory. All libraries
|
||||
located here will be prioritized over system libraries. Useful for
|
||||
cross-compiling.")
|
||||
|
Loading…
x
Reference in New Issue
Block a user