mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-19 05:33:02 +00:00
Set C++ standard to 14 if linking against GPSTk with gcc
This commit is contained in:
parent
b78bbdf555
commit
2b257f87d7
@ -533,13 +533,17 @@ set(FILESYSTEM_FOUND FALSE)
|
|||||||
if(NOT (GNURADIO_VERSION VERSION_LESS 3.8) AND LOG4CPP_READY_FOR_CXX17)
|
if(NOT (GNURADIO_VERSION VERSION_LESS 3.8) AND LOG4CPP_READY_FOR_CXX17)
|
||||||
# Check if we have std::filesystem
|
# Check if we have std::filesystem
|
||||||
if(NOT (CMAKE_VERSION VERSION_LESS 3.8))
|
if(NOT (CMAKE_VERSION VERSION_LESS 3.8))
|
||||||
find_package(FILESYSTEM COMPONENTS Final Experimental)
|
if((NOT (CMAKE_CXX_COMPILER_ID STREQUAL "GNU"))
|
||||||
set_package_properties(FILESYSTEM PROPERTIES
|
OR NOT (ENABLE_UNIT_TESTING_EXTRA OR ENABLE_SYSTEM_TESTING_EXTRA OR ENABLE_FPGA))
|
||||||
URL "https://en.cppreference.com/w/cpp/filesystem"
|
# Fix for GPTSk
|
||||||
DESCRIPTION "Provides facilities for performing operations on file systems and their components"
|
find_package(FILESYSTEM COMPONENTS Final Experimental)
|
||||||
PURPOSE "Work with paths, regular files, and directories."
|
set_package_properties(FILESYSTEM PROPERTIES
|
||||||
TYPE OPTIONAL
|
URL "https://en.cppreference.com/w/cpp/filesystem"
|
||||||
)
|
DESCRIPTION "Provides facilities for performing operations on file systems and their components"
|
||||||
|
PURPOSE "Work with paths, regular files, and directories."
|
||||||
|
TYPE OPTIONAL
|
||||||
|
)
|
||||||
|
endif()
|
||||||
if(${FILESYSTEM_FOUND})
|
if(${FILESYSTEM_FOUND})
|
||||||
if(CMAKE_VERSION VERSION_LESS 3.13)
|
if(CMAKE_VERSION VERSION_LESS 3.13)
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
|
Loading…
Reference in New Issue
Block a user