build: fix finding embree license with mac package

This commit is contained in:
Eric Wasylishen 2021-09-12 01:17:09 -06:00
parent bd3452bfdc
commit 3f2d8c57c1
1 changed files with 2 additions and 1 deletions

View File

@ -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()