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:
@@ -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})
|
||||
|
Reference in New Issue
Block a user