[Cmake-commits] [cmake-commits] king committed OutDir.cmake 1.1 1.2

cmake-commits at cmake.org cmake-commits at cmake.org
Thu Oct 29 09:26:19 EDT 2009


Update of /cvsroot/CMake/CMake/Tests/OutDir
In directory public:/mounts/ram/cvs-serv11381/Tests/OutDir

Modified Files:
	OutDir.cmake 
Log Message:
Fix OutDir test on HP, MinGW, and Cygwin

The commit "Test per-config OUTPUT_DIRECTORY properties" added this test
with a find_library() call in a CMake script, which requires an explicit
list of possible library prefixes and suffixes.  This commit adds more
suffixes to match the libraries built on HP, MinGW, and Cygwin.


Index: OutDir.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/OutDir/OutDir.cmake,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** OutDir.cmake	28 Oct 2009 17:35:53 -0000	1.1
--- OutDir.cmake	29 Oct 2009 13:26:17 -0000	1.2
***************
*** 1,4 ****
  set(CMAKE_FIND_LIBRARY_PREFIXES "lib" "")
! set(CMAKE_FIND_LIBRARY_SUFFIXES ".lib" ".a" ".so" ".dylib")
  
  find_library(TESTC1_LIB
--- 1,4 ----
  set(CMAKE_FIND_LIBRARY_PREFIXES "lib" "")
! set(CMAKE_FIND_LIBRARY_SUFFIXES ".lib" ".a" ".so" ".sl" ".dylib" ".dll.a")
  
  find_library(TESTC1_LIB



More information about the Cmake-commits mailing list