summaryrefslogtreecommitdiff
path: root/volk/lib/CMakeLists.txt
diff options
context:
space:
mode:
authorTom Rondeau2012-08-30 20:44:16 -0400
committerTom Rondeau2012-08-30 20:44:16 -0400
commit0a22fe1e6622ac083d8cef8a3b027035f2443c7f (patch)
treee8437190c05115b825d792c28cf0caf565c96fab /volk/lib/CMakeLists.txt
parent853920e9aaa32f9f0dda2cdc75ded4eee738117f (diff)
parent873585ccd45c6362c5f17d71021f15edd798785b (diff)
downloadgnuradio-0a22fe1e6622ac083d8cef8a3b027035f2443c7f.tar.gz
gnuradio-0a22fe1e6622ac083d8cef8a3b027035f2443c7f.tar.bz2
gnuradio-0a22fe1e6622ac083d8cef8a3b027035f2443c7f.zip
Merge branch 'master' of gnuradio.org:gnuradio
Diffstat (limited to 'volk/lib/CMakeLists.txt')
-rw-r--r--volk/lib/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/volk/lib/CMakeLists.txt b/volk/lib/CMakeLists.txt
index 58bf026b4..d9aeb797c 100644
--- a/volk/lib/CMakeLists.txt
+++ b/volk/lib/CMakeLists.txt
@@ -93,7 +93,9 @@ macro(check_arch arch_name)
COMMAND ${PYTHON_EXECUTABLE} -c "import re; print(re.sub('\\W', '_', '${have_flag}'))"
OUTPUT_VARIABLE have_flag OUTPUT_STRIP_TRAILING_WHITESPACE
)
- set(CMAKE_REQUIRED_FLAGS VOLK_FLAG_CHECK_FLAGS)
+ if(VOLK_FLAG_CHECK_FLAGS)
+ set(CMAKE_REQUIRED_FLAGS VOLK_FLAG_CHECK_FLAGS)
+ endif()
CHECK_CXX_COMPILER_FLAG(${flag} ${have_flag})
unset(CMAKE_REQUIRED_FLAGS)
if (NOT ${have_flag})