mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 12:41:20 -06:00 
			
		
		
		
	Eliminate build warning with TBB_USE_CAPTURED_EXCEPTION
also make small adjustment on wxWidgets detection on Unix.
This commit is contained in:
		
							parent
							
								
									48a94ebae1
								
							
						
					
					
						commit
						2be23c8b14
					
				
					 2 changed files with 13 additions and 2 deletions
				
			
		|  | @ -46,7 +46,18 @@ endif() | |||
| add_subdirectory(libslic3r) | ||||
| 
 | ||||
| if (SLIC3R_GUI) | ||||
|     message(STATUS "WXWIN environment set to: $ENV{WXWIN}") | ||||
|     if(WIN32) | ||||
|         message(STATUS "WXWIN environment set to: $ENV{WXWIN}") | ||||
|     elseif(UNIX) | ||||
|         message(STATUS "wx-config path: ${wxWidgets_CONFIG_EXECUTABLE}") | ||||
|         set(wxWidgets_USE_UNICODE ON) | ||||
|         if(SLIC3R_STATIC) | ||||
|             set(wxWidgets_USE_STATIC ON) | ||||
|         else() | ||||
|             set(wxWidgets_USE_STATIC OFF) | ||||
|         endif() | ||||
|     endif() | ||||
| 
 | ||||
|     find_package(wxWidgets REQUIRED COMPONENTS base core adv html gl) | ||||
|     include(${wxWidgets_USE_FILE}) | ||||
| endif() | ||||
|  |  | |||
|  | @ -68,7 +68,7 @@ if(TBB_FOUND) | |||
|        target_compile_definitions(libnest2d INTERFACE -D__TBB_NO_IMPLICIT_LINKAGE) | ||||
|     endif() | ||||
|     # The Intel TBB library will use the std::exception_ptr feature of C++11. | ||||
|     target_compile_definitions(libnest2d INTERFACE -DTBB_USE_CAPTURED_EXCEPTION=1) | ||||
|     target_compile_definitions(libnest2d INTERFACE -DTBB_USE_CAPTURED_EXCEPTION=0) | ||||
| 
 | ||||
|     target_link_libraries(libnest2d INTERFACE tbb) | ||||
| else() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 tamasmeszaros
						tamasmeszaros