mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-30 23:03:05 +00:00 
			
		
		
		
	Replace boost::filesystem by std::experimental::filesystem when the later is available
This commit is contained in:
		| @@ -68,6 +68,9 @@ add_library(acquisition_gr_blocks ${ACQ_GR_BLOCKS_SOURCES} ${ACQ_GR_BLOCKS_HEADE | ||||
|  | ||||
| if(${FILESYSTEM_FOUND}) | ||||
|     target_compile_definitions(acquisition_gr_blocks PRIVATE -DHAS_STD_FILESYSTEM=1) | ||||
|     if(${find_experimental}) | ||||
|         target_compile_definitions(acquisition_gr_blocks PRIVATE -DHAS_STD_FILESYSTEM_EXPERIMENTAL=1) | ||||
|     endif() | ||||
|     target_link_libraries(acquisition_gr_blocks PRIVATE std::filesystem) | ||||
| else() | ||||
|     target_link_libraries(acquisition_gr_blocks PRIVATE Boost::filesystem) | ||||
|   | ||||
| @@ -40,7 +40,11 @@ | ||||
| #include "gnss_sdr_create_directory.h" | ||||
| #include "gnss_synchro.h" | ||||
| #if HAS_STD_FILESYSTEM | ||||
| #if HAS_STD_FILESYSTEM_EXPERIMENTAL | ||||
| #include <experimental/filesystem> | ||||
| #else | ||||
| #include <filesystem> | ||||
| #endif | ||||
| #else | ||||
| #include <boost/filesystem/path.hpp> | ||||
| #endif | ||||
| @@ -58,7 +62,11 @@ | ||||
| #include <map> | ||||
|  | ||||
| #if HAS_STD_FILESYSTEM | ||||
| #if HAS_STD_FILESYSTEM_EXPERIMENTAL | ||||
| namespace fs = std::experimental::filesystem; | ||||
| #else | ||||
| namespace fs = std::filesystem; | ||||
| #endif | ||||
| #else | ||||
| namespace fs = boost::filesystem; | ||||
| #endif | ||||
|   | ||||
| @@ -35,7 +35,11 @@ | ||||
| #include "gnss_sdr_create_directory.h" | ||||
| #include "gps_sdr_signal_processing.h" | ||||
| #if HAS_STD_FILESYSTEM | ||||
| #if HAS_STD_FILESYSTEM_EXPERIMENTAL | ||||
| #include <experimental/filesystem> | ||||
| #else | ||||
| #include <filesystem> | ||||
| #endif | ||||
| #else | ||||
| #include <boost/filesystem/path.hpp> | ||||
| #endif | ||||
| @@ -48,7 +52,11 @@ | ||||
| #include <sstream> | ||||
|  | ||||
| #if HAS_STD_FILESYSTEM | ||||
| #if HAS_STD_FILESYSTEM_EXPERIMENTAL | ||||
| namespace fs = std::experimental::filesystem; | ||||
| #else | ||||
| namespace fs = std::filesystem; | ||||
| #endif | ||||
| #else | ||||
| namespace fs = boost::filesystem; | ||||
| #endif | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Carles Fernandez
					Carles Fernandez