mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Possibility to link curl and glew dynamically in static mode.
This commit is contained in:
		
							parent
							
								
									40f78ca31c
								
							
						
					
					
						commit
						421089ebc8
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		|  | @ -405,7 +405,7 @@ else() | |||
|     target_link_libraries(libcurl INTERFACE crypt32) | ||||
| endif() | ||||
| 
 | ||||
| if (SLIC3R_STATIC) | ||||
| if (SLIC3R_STATIC AND NOT SLIC3R_STATIC_EXCLUDE_CURL) | ||||
|     if (NOT APPLE) | ||||
|         # libcurl is always linked dynamically to the system libcurl on OSX. | ||||
|         # On other systems, libcurl is linked statically if SLIC3R_STATIC is set. | ||||
|  | @ -456,13 +456,13 @@ set(OpenGL_GL_PREFERENCE "LEGACY") | |||
| find_package(OpenGL REQUIRED) | ||||
| 
 | ||||
| # Find glew or use bundled version | ||||
| if (SLIC3R_STATIC) | ||||
| if (SLIC3R_STATIC AND NOT SLIC3R_STATIC_EXCLUDE_GLEW) | ||||
|     set(GLEW_USE_STATIC_LIBS ON) | ||||
|     set(GLEW_VERBOSE ON) | ||||
| endif() | ||||
| 
 | ||||
| find_package(GLEW) | ||||
| if (NOT GLEW_FOUND) | ||||
| if (NOT TARGET GLEW::GLEW) | ||||
|     message(STATUS "GLEW not found, using bundled version.") | ||||
|     add_library(glew STATIC ${LIBDIR}/glew/src/glew.c) | ||||
|     set(GLEW_FOUND TRUE) | ||||
|  |  | |||
|  | @ -268,7 +268,7 @@ if(APPLE) | |||
|     target_link_libraries(libslic3r_gui ${DISKARBITRATION_LIBRARY}) | ||||
| endif() | ||||
| 
 | ||||
| if (SLIC3R_STATIC AND UNIX AND NOT APPLE) | ||||
| if (SLIC3R_STATIC AND NOT SLIC3R_STATIC_EXCLUDE_CURL AND UNIX AND NOT APPLE) | ||||
|     target_compile_definitions(libslic3r_gui PRIVATE OPENSSL_CERT_OVERRIDE) | ||||
| endif () | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 tamasmeszaros
						tamasmeszaros