summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Balister <philip@opensdr.com>2010-08-28 15:23:31 -0400
committerPhilip Balister <balister@octopus.(none)>2010-08-28 15:27:43 -0400
commit63a07eb9c8ba49657a815e62e8937c65e2a8362a (patch)
tree3039f3b9e6fb19a8016103a9f8acf278a2199909
parent924914beaac3dd3a2d9fe40c9067ad4f9147a4f6 (diff)
downloaduhd-63a07eb9c8ba49657a815e62e8937c65e2a8362a.tar.gz
uhd-63a07eb9c8ba49657a815e62e8937c65e2a8362a.tar.bz2
uhd-63a07eb9c8ba49657a815e62e8937c65e2a8362a.zip
Add support for building c programs. Remove -pedantic and -ansi flags.
-rw-r--r--host/CMakeLists.txt4
1 files changed, 1 insertions, 3 deletions
diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt
index ceea5d024..78948d9bd 100644
--- a/host/CMakeLists.txt
+++ b/host/CMakeLists.txt
@@ -16,7 +16,7 @@
#
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
-PROJECT(UHD CXX)
+PROJECT(UHD CXX C)
ENABLE_TESTING()
########################################################################
@@ -61,8 +61,6 @@ ENDIF(NOT CMAKE_BUILD_TYPE)
IF(CMAKE_COMPILER_IS_GNUCXX)
ADD_DEFINITIONS(-Wall)
ADD_DEFINITIONS(-Wextra)
- ADD_DEFINITIONS(-pedantic)
- ADD_DEFINITIONS(-ansi)
#only export symbols that are declared to be part of the uhd api:
UHD_ADD_OPTIONAL_CXX_COMPILER_FLAG(-fvisibility=hidden HAVE_VISIBILITY_HIDDEN)
ENDIF(CMAKE_COMPILER_IS_GNUCXX)