aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Pakulat <apaku@gmx.de>2007-12-21 18:43:55 +0000
committerAndreas Pakulat <apaku@gmx.de>2007-12-21 18:43:55 +0000
commit9b53104d3fe4dfdd7506ffd49e6195a65d514ba5 (patch)
treec14f2fdab404fb129dca17f280ee79568cc186c3
parente3680c90b01171cbf76461fceb754357aae59fa5 (diff)
downloadextra-cmake-modules-9b53104d3fe4dfdd7506ffd49e6195a65d514ba5.tar.gz
extra-cmake-modules-9b53104d3fe4dfdd7506ffd49e6195a65d514ba5.tar.bz2
CMAKE_LIBRARY_PATH is AFAIK an environment variable and thus contains native paths, so convert them to cmake paths before handing them to find_library
svn path=/trunk/KDE/kdelibs/; revision=751355
-rw-r--r--modules/FindKDEWIN32.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/FindKDEWIN32.cmake b/modules/FindKDEWIN32.cmake
index 5d4499af..7e9c36a5 100644
--- a/modules/FindKDEWIN32.cmake
+++ b/modules/FindKDEWIN32.cmake
@@ -27,12 +27,12 @@ if (WIN32)
)
# search for kdewin32 in the default install directory for applications (default of (n)make install)
-
+ FILE(TO_CMAKE_PATH "${CMAKE_LIBRARY_PATH}" _cmakeLibraryPathCmakeStyle)
find_library_with_debug(KDEWIN32_LIBRARY
WIN32_DEBUG_POSTFIX d
NAMES kdewin32
PATHS
- ${CMAKE_LIBRARY_PATH}
+ ${_cmakeLibraryPathCmakeStyle}
${CMAKE_INSTALL_PREFIX}/lib
NO_SYSTEM_ENVIRONMENT_PATH
)