mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-15 04:30:33 +00:00
Fix building of matio_test when building with c++17
This commit is contained in:
parent
4dfb2cf5d2
commit
f73e66d376
@ -744,6 +744,16 @@ add_executable(matio_test
|
|||||||
${CMAKE_CURRENT_SOURCE_DIR}/unit-tests/arithmetic/matio_test.cc
|
${CMAKE_CURRENT_SOURCE_DIR}/unit-tests/arithmetic/matio_test.cc
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(${FILESYSTEM_FOUND})
|
||||||
|
target_compile_definitions(matio_test PRIVATE -DHAS_STD_FILESYSTEM=1)
|
||||||
|
if(${find_experimental})
|
||||||
|
target_compile_definitions(matio_test PRIVATE -DHAS_STD_FILESYSTEM_EXPERIMENTAL=1)
|
||||||
|
endif()
|
||||||
|
target_link_libraries(matio_test PRIVATE std::filesystem)
|
||||||
|
else()
|
||||||
|
target_link_libraries(matio_test PRIVATE Boost::filesystem Boost::system)
|
||||||
|
endif()
|
||||||
|
|
||||||
target_link_libraries(matio_test
|
target_link_libraries(matio_test
|
||||||
PUBLIC
|
PUBLIC
|
||||||
Gflags::gflags
|
Gflags::gflags
|
||||||
|
Loading…
Reference in New Issue
Block a user