mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-14 20:20:35 +00:00
Fix building if matio was not installed in the system
This commit is contained in:
parent
6eb03cd94c
commit
702257e678
@ -711,9 +711,17 @@ target_link_libraries(matio_test ${Boost_LIBRARIES}
|
||||
gnss_system_parameters )
|
||||
add_test(matio_test matio_test)
|
||||
if(NOT ${GTEST_DIR_LOCAL})
|
||||
add_dependencies(matio_test gtest-${GNSSSDR_GTEST_LOCAL_VERSION})
|
||||
if(MATIO_FOUND)
|
||||
add_dependencies(matio_test gtest-${GNSSSDR_GTEST_LOCAL_VERSION})
|
||||
else(MATIO_FOUND)
|
||||
add_dependencies(matio_test gtest-${GNSSSDR_GTEST_LOCAL_VERSION} matio-${GNSSSDR_MATIO_LOCAL_VERSION})
|
||||
endif(MATIO_FOUND)
|
||||
else(NOT ${GTEST_DIR_LOCAL})
|
||||
add_dependencies(matio_test gtest)
|
||||
if(MATIO_FOUND)
|
||||
add_dependencies(matio_test gtest)
|
||||
else(MATIO_FOUND)
|
||||
add_dependencies(matio_test gtest matio-${GNSSSDR_MATIO_LOCAL_VERSION})
|
||||
endif(MATIO_FOUND)
|
||||
endif(NOT ${GTEST_DIR_LOCAL})
|
||||
|
||||
add_executable(acq_test
|
||||
|
Loading…
Reference in New Issue
Block a user