[llvm-commits] [polly] r166402 - /polly/trunk/test/CMakeLists.txt

Tobias Grosser grosser at fim.uni-passau.de
Sun Oct 21 14:08:29 PDT 2012


Author: grosser
Date: Sun Oct 21 16:08:29 2012
New Revision: 166402

URL: http://llvm.org/viewvc/llvm-project?rev=166402&view=rev
Log:
cmake: Use suffix for shared modules instead of the one for shared libraries

On Linux there is no difference between shared modules and shared libaries, both
are '.so' files. However, on darwin only shared modules are '.so' files. Shared
libraries have the '.dynlib' suffix.

Fix test cases on darwin by expecting a shared module suffix for Polly instead
of a shared library suffix.

This fixes PR14135

Reported by:  Jack Howarth  <howarth at bromo.med.uc.edu>

Modified:
    polly/trunk/test/CMakeLists.txt

Modified: polly/trunk/test/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/CMakeLists.txt?rev=166402&r1=166401&r2=166402&view=diff
==============================================================================
--- polly/trunk/test/CMakeLists.txt (original)
+++ polly/trunk/test/CMakeLists.txt Sun Oct 21 16:08:29 2012
@@ -11,7 +11,7 @@
 
 set(POLLY_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/..")
 set(POLLY_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/..")
-set(LLVM_SHLIBEXT "${CMAKE_SHARED_LIBRARY_SUFFIX}")
+set(LLVM_SHLIBEXT "${CMAKE_SHARED_MODULE_SUFFIX}")
 
 if (NOT DEFINED LLVM_MAIN_SRC_DIR)
   # We are building polly out of tree, adjust the settings.





More information about the llvm-commits mailing list