summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeGenericSystem.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-02-09 20:05:13 (GMT)
committerBrad King <brad.king@kitware.com>2006-02-09 20:05:13 (GMT)
commit33587ce37676c906b7deed07764e2757c6f3997f (patch)
tree995db15982faea296f647f0788cdca9ae8c5e494 /Modules/CMakeGenericSystem.cmake
parent0ddf06e952088c95147312c486da9835f84385b2 (diff)
downloadCMake-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/CMakeGenericSystem.cmake')
-rw-r--r--Modules/CMakeGenericSystem.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/CMakeGenericSystem.cmake b/Modules/CMakeGenericSystem.cmake
index fc2b95d..1ea6e36 100644
--- a/Modules/CMakeGenericSystem.cmake
+++ b/Modules/CMakeGenericSystem.cmake
@@ -22,6 +22,9 @@ IF(CMAKE_COMPILER_IS_GNUCXX)
SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "-fPIC") # -pic
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
+SET(CMAKE_FIND_LIBRARY_PREFIXES "lib")
+SET(CMAKE_FIND_LIBRARY_SUFFIXES ".so" ".a")
+
SET (CMAKE_SKIP_RPATH "NO" CACHE BOOL
"If set, runtime paths are not added when using shared libraries.")