diff options
author | Patrick Reynolds <cpreynolds@gmail.com> | 2009-08-18 22:43:37 -0400 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-08-19 17:35:25 +0200 |
commit | 0b78ef85100978c6c32a0815b5b8544b72f05c52 (patch) | |
tree | 139f75e528d26abcb48d72b1dcba4e2f297ecffd /src | |
parent | 354ac4e9edd7db050e2b71a34a01c5b8b3100607 (diff) | |
download | pianobar-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.txt | 5 |
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) |