diff options
author | Brad King <brad.king@kitware.com> | 2006-02-09 20:05:13 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-02-09 20:05:13 (GMT) |
commit | 33587ce37676c906b7deed07764e2757c6f3997f (patch) | |
tree | 995db15982faea296f647f0788cdca9ae8c5e494 /Modules/Platform/Windows-gcc.cmake | |
parent | 0ddf06e952088c95147312c486da9835f84385b2 (diff) | |
download | CMake-33587ce37676c906b7deed07764e2757c6f3997f.zip CMake-33587ce37676c906b7deed07764e2757c6f3997f.tar.gz CMake-33587ce37676c906b7deed07764e2757c6f3997f.tar.bz2 |
ENH: Added platform settings CMAKE_FIND_LIBRARY_PREFIXES and CMAKE_FIND_LIBRARY_SUFFIXES to allow customized searching for libraries.
Diffstat (limited to 'Modules/Platform/Windows-gcc.cmake')
-rw-r--r-- | Modules/Platform/Windows-gcc.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/Platform/Windows-gcc.cmake b/Modules/Platform/Windows-gcc.cmake index 949cc56..779d1e5 100644 --- a/Modules/Platform/Windows-gcc.cmake +++ b/Modules/Platform/Windows-gcc.cmake @@ -15,3 +15,8 @@ SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "") # -rpath SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP "") # : or empty SET(CMAKE_LIBRARY_PATH_FLAG "-L") SET(CMAKE_LINK_LIBRARY_FLAG "-l") + +IF(MINGW) + SET(CMAKE_FIND_LIBRARY_PREFIXES "lib" "") + SET(CMAKE_FIND_LIBRARY_SUFFIXES ".dll" ".dll.a" ".a") +ENDIF(MINGW) |