build: fix finding embree license with mac package
This commit is contained in:
parent
bd3452bfdc
commit
3f2d8c57c1
|
|
@ -63,11 +63,12 @@ if (embree_FOUND)
|
|||
|
||||
find_file(EMBREE_LICENSE LICENSE.txt
|
||||
"${embree_DIR}/doc"
|
||||
"${embree_DIR}/../../../doc"
|
||||
"${embree_DIR}/../embree3/embree3" # vcpkg puts it here
|
||||
"${embree_DIR}/../../.." # homebrew puts it here
|
||||
NO_DEFAULT_PATH)
|
||||
if (EMBREE_LICENSE STREQUAL EMBREE_LICENSE-NOTFOUND)
|
||||
message(WARNING "Couldn't find embree license")
|
||||
message(WARNING "Couldn't find embree license. embree_DIR is ${embree_DIR}")
|
||||
else()
|
||||
message(STATUS "Found embree license: ${EMBREE_LICENSE}")
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Reference in New Issue