diff options
author | Tom Rondeau | 2012-08-30 20:44:16 -0400 |
---|---|---|
committer | Tom Rondeau | 2012-08-30 20:44:16 -0400 |
commit | 0a22fe1e6622ac083d8cef8a3b027035f2443c7f (patch) | |
tree | e8437190c05115b825d792c28cf0caf565c96fab /volk/lib/CMakeLists.txt | |
parent | 853920e9aaa32f9f0dda2cdc75ded4eee738117f (diff) | |
parent | 873585ccd45c6362c5f17d71021f15edd798785b (diff) | |
download | gnuradio-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.txt | 4 |
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}) |