1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-08-30 09:27:58 +00:00

Fix potential building failure when re-running CMake

This commit is contained in:
Carles Fernandez
2025-08-08 20:40:07 +02:00
parent 19050d2df8
commit 191d1d0612

View File

@@ -300,7 +300,11 @@ if(CMAKE_VERSION VERSION_GREATER 3.0 AND VOLK_CPU_FEATURES)
set(ENABLE_INSTALL_AUX ${ENABLE_INSTALL})
endif()
set(ENABLE_INSTALL ON)
set(AUX_CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
add_subdirectory(cpu_features)
unset(CMAKE_INSTALL_PREFIX CACHE)
set(CMAKE_INSTALL_PREFIX ${AUX_CMAKE_INSTALL_PREFIX})
unset(AUX_CMAKE_INSTALL_PREFIX CACHE)
unset(ENABLE_INSTALL)
if(ENABLE_INSTALL_AUX)
set(ENABLE_INSTALL ${ENABLE_INSTALL_AUX})