mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 06:50:05 +00:00 
			
		
		
		
	Workaround for Boost 1.78.0 log namespace change
This commit is contained in:
		
							parent
							
								
									a18db83730
								
							
						
					
					
						commit
						ae886fd624
					
				
					 3 changed files with 12 additions and 0 deletions
				
			
		|  | @ -206,6 +206,10 @@ qt6_create_translation_scwx(QM_FILES ${scwx-qt_SOURCE_DIR} ${TS_FILES}) | |||
| if (WIN32) | ||||
|     target_compile_definitions(scwx-qt      PUBLIC WIN32_LEAN_AND_MEAN) | ||||
|     target_compile_definitions(supercell-wx PUBLIC WIN32_LEAN_AND_MEAN) | ||||
| 
 | ||||
|     # For Boost::log | ||||
|     target_compile_definitions(scwx-qt      PRIVATE BOOST_USE_WINAPI_VERSION=0x0601) | ||||
|     target_compile_definitions(supercell-wx PRIVATE BOOST_USE_WINAPI_VERSION=0x0601) | ||||
| endif() | ||||
| 
 | ||||
| target_include_directories(scwx-qt PUBLIC ${scwx-qt_SOURCE_DIR}/source | ||||
|  |  | |||
|  | @ -54,6 +54,11 @@ endif() | |||
| 
 | ||||
| target_compile_definitions(wxtest PRIVATE SCWX_TEST_DATA_DIR="${SCWX_DIR}/test/data") | ||||
| 
 | ||||
| if (WIN32) | ||||
|     # For Boost::log | ||||
|     target_compile_definitions(wxtest PRIVATE BOOST_USE_WINAPI_VERSION=0x0601) | ||||
| endif() | ||||
| 
 | ||||
| gtest_discover_tests(wxtest) | ||||
| 
 | ||||
| target_link_libraries(wxtest GTest::gtest | ||||
|  |  | |||
|  | @ -198,6 +198,9 @@ target_link_libraries(wxdata INTERFACE Boost::iostreams | |||
| 
 | ||||
| if (WIN32) | ||||
|     target_link_libraries(wxdata INTERFACE Ws2_32) | ||||
| 
 | ||||
|     # For Boost::log | ||||
|     target_compile_definitions(wxdata PRIVATE BOOST_USE_WINAPI_VERSION=0x0601) | ||||
| endif() | ||||
| 
 | ||||
| set_target_properties(wxdata PROPERTIES CXX_STANDARD 20 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat