From 6c8e6966186179e04a9a6310af572923e11eb608 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Sun, 21 Oct 2012 21:08:29 +0000 Subject: [PATCH] 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 llvm-svn: 166402 --- polly/test/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polly/test/CMakeLists.txt b/polly/test/CMakeLists.txt index c433ebe881de..24ccab02a878 100644 --- a/polly/test/CMakeLists.txt +++ b/polly/test/CMakeLists.txt @@ -11,7 +11,7 @@ set(POLLY_TEST_DIRECTORIES 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.