aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBenjamin Reed <ranger@befunk.com>2009-06-02 21:23:43 +0000
committerBenjamin Reed <ranger@befunk.com>2009-06-02 21:23:43 +0000
commit752d23e59dd11f71763cc1c72dad30a2cc0964a7 (patch)
tree03cf17afc391f731959cc5f2bae1fc133ca2b76e /modules
parent5363f85ae5e6be164e1bb32164f45c41800fb520 (diff)
downloadextra-cmake-modules-752d23e59dd11f71763cc1c72dad30a2cc0964a7.tar.gz
extra-cmake-modules-752d23e59dd11f71763cc1c72dad30a2cc0964a7.tar.bz2
it helps to check in the right file when editing in 2 different places :P
svn path=/trunk/KDE/kdelibs/; revision=976876
Diffstat (limited to 'modules')
-rw-r--r--modules/FindPhonon.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/FindPhonon.cmake b/modules/FindPhonon.cmake
index e9d45f0b..33faaada 100644
--- a/modules/FindPhonon.cmake
+++ b/modules/FindPhonon.cmake
@@ -13,10 +13,10 @@
macro(_phonon_find_version)
set(_phonon_namespace_header_file "${PHONON_INCLUDE_DIR}/phonon/phononnamespace.h")
- if (APPLE AND EXISTS "${PHONON_INCLUDE_DIR}/Headers/phonon/phononnamespace.h")
- set(_phonon_namespace_header_file "${PHONON_INCLUDE_DIR}/Headers/phonon/phononnamespace.h")
- endif (APPLE AND EXISTS "${PHONON_INCLUDE_DIR}/Headers/phonon/phononnamespace.h")
- file(READ _phonon_namespace_header_file _phonon_header LIMIT 5000 OFFSET 1000)
+ if (APPLE AND EXISTS "${PHONON_INCLUDE_DIR}/Headers/phononnamespace.h")
+ set(_phonon_namespace_header_file "${PHONON_INCLUDE_DIR}/Headers/phononnamespace.h")
+ endif (APPLE AND EXISTS "${PHONON_INCLUDE_DIR}/Headers/phononnamespace.h")
+ file(READ ${_phonon_namespace_header_file} _phonon_header LIMIT 5000 OFFSET 1000)
string(REGEX MATCH "define PHONON_VERSION_STR \"(4\\.[0-9]+\\.[0-9a-z]+)\"" _phonon_version_match "${_phonon_header}")
set(PHONON_VERSION "${CMAKE_MATCH_1}")
message(STATUS "Phonon Version: ${PHONON_VERSION}")