summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatrick Reynolds <cpreynolds@gmail.com>2009-08-18 22:43:37 -0400
committerLars-Dominik Braun <PromyLOPh@lavabit.com>2009-08-19 17:35:25 +0200
commit0b78ef85100978c6c32a0815b5b8544b72f05c52 (patch)
tree139f75e528d26abcb48d72b1dcba4e2f297ecffd /src
parent354ac4e9edd7db050e2b71a34a01c5b8b3100607 (diff)
downloadpianobar-0b78ef85100978c6c32a0815b5b8544b72f05c52.tar.gz
pianobar-0b78ef85100978c6c32a0815b5b8544b72f05c52.tar.bz2
pianobar-0b78ef85100978c6c32a0815b5b8544b72f05c52.zip
Added cmake code to remove the CPM0003 warning.
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index eb14a3e..5ef7c5a 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -3,6 +3,11 @@ set (CMAKE_C_FLAGS -Wall)
set (ENABLE_MAD 0)
set (ENABLE_FAAD 0)
+# This removes a warning on newer versions of cmake
+if(COMMAND cmake_policy)
+ cmake_policy(SET CMP0003 NEW)
+endif(COMMAND cmake_policy)
+
option (USE_FAAD "Use libfaad for aac decoding (if available)" on)
option (USE_MAD "Use libmad for mp3 decoding (if available)" on)