mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	Change how the boost target works; disable external warnings in MSVC
This commit is contained in:
		
							parent
							
								
									a0ac302a93
								
							
						
					
					
						commit
						9877bf7d48
					
				
					 5 changed files with 42 additions and 22 deletions
				
			
		
							
								
								
									
										19
									
								
								externals/CMakeLists.txt
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										19
									
								
								externals/CMakeLists.txt
									
										
									
									
										vendored
									
									
								
							|  | @ -1,9 +1,28 @@ | |||
| # Definitions for all external bundled libraries | ||||
| 
 | ||||
| # Suppress warnings from external libraries | ||||
| if (CMAKE_C_COMPILER_ID MATCHES "MSVC") | ||||
|     add_compile_options(/W0) | ||||
| endif() | ||||
| 
 | ||||
| set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMakeModules) | ||||
| include(DownloadExternals) | ||||
| include(ExternalProject) | ||||
| 
 | ||||
| # Boost | ||||
| set(BOOST_ROOT "${CMAKE_SOURCE_DIR}/externals/boost") | ||||
| set(Boost_INCLUDE_DIR "${CMAKE_SOURCE_DIR}/externals/boost") | ||||
| set(Boost_NO_SYSTEM_PATHS ON) | ||||
| add_library(boost INTERFACE) | ||||
| target_include_directories(boost SYSTEM INTERFACE ${Boost_INCLUDE_DIR}) | ||||
| 
 | ||||
| # Boost::serialization | ||||
| file(GLOB boost_serialization_SRC "${CMAKE_SOURCE_DIR}/externals/boost/libs/serialization/src/*.cpp") | ||||
| add_library(boost_serialization STATIC ${boost_serialization_SRC}) | ||||
| target_link_libraries(boost_serialization PUBLIC boost) | ||||
| 
 | ||||
| # Add additional boost libs here; remember to ALIAS them in the root CMakeLists! | ||||
| 
 | ||||
| # Catch | ||||
| add_library(catch-single-include INTERFACE) | ||||
| target_include_directories(catch-single-include INTERFACE catch/single_include) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue