mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
parent
0cd4160a71
commit
ac089658f3
@ -145,6 +145,8 @@ function(package_option name)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
option("HAVE_${name}" "${cache_string}" "${default}")
|
||||||
|
|
||||||
# If it was set by the user but not found, display an error.
|
# If it was set by the user but not found, display an error.
|
||||||
string(TOUPPER "${found_as}" FOUND_AS)
|
string(TOUPPER "${found_as}" FOUND_AS)
|
||||||
if(HAVE_${name} AND NOT ${found_as}_FOUND AND NOT ${FOUND_AS}_FOUND)
|
if(HAVE_${name} AND NOT ${found_as}_FOUND AND NOT ${FOUND_AS}_FOUND)
|
||||||
@ -180,9 +182,7 @@ function(package_option name)
|
|||||||
"$<TARGET_PROPERTY:PKG::${name},INTERFACE_INCLUDE_DIRECTORIES>")
|
"$<TARGET_PROPERTY:PKG::${name},INTERFACE_INCLUDE_DIRECTORIES>")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Create the option, and if it actually is enabled, populate the INTERFACE
|
# If the option actually is enabled, populate the INTERFACE library created above
|
||||||
# library created above
|
|
||||||
option("HAVE_${name}" "${cache_string}" "${default}")
|
|
||||||
if(HAVE_${name})
|
if(HAVE_${name})
|
||||||
set(use_variables ON)
|
set(use_variables ON)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user