mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 03:40:05 +00:00 
			
		
		
		
	Update cmake file and add test cpp file for not compiling the date library if not needed
This commit is contained in:
		
							parent
							
								
									79e39021a6
								
							
						
					
					
						commit
						264ed5a943
					
				
					 1 changed files with 10 additions and 2 deletions
				
			
		|  | @ -252,6 +252,11 @@ source_group("Source Files\\wsr88d\\rda" FILES ${SRC_WSR88D_RDA}) | ||||||
| source_group("Header Files\\wsr88d\\rpg" FILES ${HDR_WSR88D_RPG}) | source_group("Header Files\\wsr88d\\rpg" FILES ${HDR_WSR88D_RPG}) | ||||||
| source_group("Source Files\\wsr88d\\rpg" FILES ${SRC_WSR88D_RPG}) | source_group("Source Files\\wsr88d\\rpg" FILES ${SRC_WSR88D_RPG}) | ||||||
| 
 | 
 | ||||||
|  | 
 | ||||||
|  | try_compile(HAS_FULL_CHRONO | ||||||
|  |             ${CMAKE_BINARY_DIR} | ||||||
|  |             ${PROJECT_SOURCE_DIR}/source/cpp-feature-tests/chrono_feature_test.cpp) | ||||||
|  | 
 | ||||||
| target_include_directories(wxdata PRIVATE ${Boost_INCLUDE_DIR} | target_include_directories(wxdata PRIVATE ${Boost_INCLUDE_DIR} | ||||||
|                                           ${HSLUV_C_INCLUDE_DIR} |                                           ${HSLUV_C_INCLUDE_DIR} | ||||||
|                                           ${scwx-data_SOURCE_DIR}/include |                                           ${scwx-data_SOURCE_DIR}/include | ||||||
|  | @ -293,9 +298,12 @@ if (WIN32) | ||||||
|     target_link_libraries(wxdata INTERFACE Ws2_32) |     target_link_libraries(wxdata INTERFACE Ws2_32) | ||||||
| endif() | endif() | ||||||
| 
 | 
 | ||||||
|  | if (NOT HAS_FULL_CHRONO) | ||||||
|  |     target_link_libraries(wxdata PUBLIC date::date-tz) | ||||||
|  | endif() | ||||||
|  | 
 | ||||||
| if (NOT MSVC) | if (NOT MSVC) | ||||||
|     target_link_libraries(wxdata PUBLIC date::date-tz |     target_link_libraries(wxdata PUBLIC TBB::tbb) | ||||||
|                                         TBB::tbb) |  | ||||||
| endif() | endif() | ||||||
| 
 | 
 | ||||||
| set_target_properties(wxdata PROPERTIES CXX_STANDARD 20 | set_target_properties(wxdata PROPERTIES CXX_STANDARD 20 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak