commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 08/14: volk: Using C checks for Volk C FLag


From: git
Subject: [Commit-gnuradio] [gnuradio] 08/14: volk: Using C checks for Volk C FLags instead of CXX.
Date: Thu, 12 Mar 2015 19:38:13 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

trondeau pushed a commit to branch android
in repository gnuradio.

commit e1de6be91cfcdf58e25649a1d4119b6c8611abda
Author: Tom Rondeau <address@hidden>
Date:   Fri Jan 2 17:27:11 2015 -0500

    volk: Using C checks for Volk C FLags instead of CXX.
---
 volk/lib/CMakeLists.txt | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/volk/lib/CMakeLists.txt b/volk/lib/CMakeLists.txt
index f20a38e..3da55bd 100644
--- a/volk/lib/CMakeLists.txt
+++ b/volk/lib/CMakeLists.txt
@@ -40,8 +40,11 @@ if(HAVE_DLFCN_H)
     list(APPEND volk_libraries ${CMAKE_DL_LIBS})
 endif()
 
-# REQUIRED FOR ANDROID BUILDS
-list(APPEND volk_libraries m)
+
+if(ANDROID)
+  list(APPEND volk_libraries m log)
+endif(ANDROID)
+
 
 ########################################################################
 # Setup the compiler name
@@ -102,7 +105,7 @@ macro(check_arch arch_name)
     set(flags ${ARGN})
     set(have_${arch_name} TRUE)
     foreach(flag ${flags})
-        include(CheckCXXCompilerFlag)
+        include(CheckCCompilerFlag)
         set(have_flag have${flag})
         execute_process( #make the have_flag have nice alphanum chars (just 
for looks/not necessary)
             COMMAND ${PYTHON_EXECUTABLE} -c "import re; print(re.sub('\\W', 
'_', '${have_flag}'))"
@@ -111,7 +114,7 @@ macro(check_arch arch_name)
         if(VOLK_FLAG_CHECK_FLAGS)
             set(CMAKE_REQUIRED_FLAGS ${VOLK_FLAG_CHECK_FLAGS})
         endif()
-        CHECK_CXX_COMPILER_FLAG(${flag} ${have_flag})
+        CHECK_C_COMPILER_FLAG(${flag} ${have_flag})
         unset(CMAKE_REQUIRED_FLAGS)
         if (NOT ${have_flag})
             set(have_${arch_name} FALSE)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]