Skip to content

Commit

Permalink
[cmake] madness-config: search for TBB using FindTBB module used PATH…
Browse files Browse the repository at this point in the history
…S/NO_DEFAULT_PATH options that are valid in CONFIG mode only
  • Loading branch information
evaleev committed Oct 25, 2023
1 parent a38f5ce commit cc4f915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/madness-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ if (TBB::tbb IN_LIST madness_MADWORLD_INTERFACE_LINK_LIBRARIES)
find_dependency(TBB CONFIG REQUIRED COMPONENTS tbb PATHS "${_tbb_config_dir}" NO_DEFAULT_PATH)
else()
get_filename_component(_tbb_root_dir "@TBB_INCLUDE_DIR@/.." DIRECTORY)
find_dependency(TBB MODULE REQUIRED COMPONENTS tbb PATHS "${_tbb_root_dir}" NO_DEFAULT_PATH)
find_dependency(TBB REQUIRED COMPONENTS tbb PATHS "${_tbb_root_dir}" NO_DEFAULT_PATH)
endif()
endif()
endif()
Expand Down

0 comments on commit cc4f915

Please sign in to comment.