Commit bb327eb6 authored by Michal Mazurek's avatar Michal Mazurek
Browse files

Always set TBB_LIBRARIES when TBB_FOUND

parent 903647ab
Pipeline #2585077 failed with stages
in 21 minutes and 19 seconds
...@@ -119,8 +119,12 @@ endfunction() ...@@ -119,8 +119,12 @@ endfunction()
# Do the final processing for the package find. # Do the final processing for the package find.
#=============================================== #===============================================
macro(findpkg_finish PREFIX TARGET_NAME) macro(findpkg_finish PREFIX TARGET_NAME)
if (${PREFIX}_FOUND)
if (${PREFIX}_LIBRARY AND NOT ${PREFIX}_LIBRARIES)
set (${PREFIX}_LIBRARIES ${${PREFIX}_LIBRARY})
endif ()
else()
# skip if already processed during this run # skip if already processed during this run
if (NOT ${PREFIX}_FOUND)
if (${PREFIX}_INCLUDE_DIR AND ${PREFIX}_LIBRARY) if (${PREFIX}_INCLUDE_DIR AND ${PREFIX}_LIBRARY)
set(${PREFIX}_FOUND TRUE) set(${PREFIX}_FOUND TRUE)
set (${PREFIX}_INCLUDE_DIRS ${${PREFIX}_INCLUDE_DIR}) set (${PREFIX}_INCLUDE_DIRS ${${PREFIX}_INCLUDE_DIR})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment