mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 12:11:15 -06:00 
			
		
		
		
	 3d8383f127
			
		
	
	
		3d8383f127
		
	
	
	
	
		
			
			CGAL to 5.4 TBB to 2021.5 OpenVDB to 8.2 Change-Id: I08992fce104e6f56001643c3c5dbf6c3f59ffc3d (cherry picked from commit 1571f176fc37dda1c3e889776e13fa49bba4ae42)
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			1,012 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			1,012 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| # This is a wrapper of FindTBB which prefers the config scripts if available in the system
 | |
| # but only if building with dynamic dependencies. The config scripts potentially belong
 | |
| # to TBB >= 2020 which is incompatible with OpenVDB in our static dependency bundle.
 | |
| # This workaround is useful for package maintainers on Linux systems to use newer versions
 | |
| # of intel TBB (renamed to oneTBB from version 2021 up).
 | |
| set(_q "")
 | |
| if(${CMAKE_FIND_PACKAGE_NAME}_FIND_QUIETLY)
 | |
|     set(_q QUIET)
 | |
| endif()
 | |
| 
 | |
| 
 | |
| find_package(${CMAKE_FIND_PACKAGE_NAME} ${${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION} CONFIG ${_q})
 | |
| 
 | |
| if(NOT ${CMAKE_FIND_PACKAGE_NAME}_FIND_QUIETLY)
 | |
|     if (NOT ${CMAKE_FIND_PACKAGE_NAME}_FOUND)
 | |
|         message(STATUS "Falling back to MODULE search for ${CMAKE_FIND_PACKAGE_NAME}...")
 | |
|     else()
 | |
|         message(STATUS "${CMAKE_FIND_PACKAGE_NAME} found in ${${CMAKE_FIND_PACKAGE_NAME}_DIR}")
 | |
|     endif()
 | |
| endif()
 | |
| 
 | |
| if (NOT ${CMAKE_FIND_PACKAGE_NAME}_FOUND)
 | |
|     include(${CMAKE_CURRENT_LIST_DIR}/FindTBB.cmake.in)
 | |
| endif ()
 |