summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauro Neto <lauro.neto@openbossa.org>2011-11-03 16:08:12 -0300
committerLauro Neto <lauro.neto@openbossa.org>2011-11-17 16:49:49 -0300
commit9367d9eccedd5a29459ceddc4761c6573d385cb8 (patch)
tree8dc7708241a30c62f4449b7e1b9801d5ea5e7cdc
parentf1fe0a3831022cf2e2dd352ad9b67f8ef72031c9 (diff)
downloadpyside-9367d9eccedd5a29459ceddc4761c6573d385cb8.tar.gz
pyside-9367d9eccedd5a29459ceddc4761c6573d385cb8.tar.xz
pyside-9367d9eccedd5a29459ceddc4761c6573d385cb8.zip
Fix PYSIDE_LIBRARY in CMake export.
Was hardcoded with Cygwin library name format. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
-rw-r--r--libpyside/PySideConfig-spec.cmake.in11
1 files changed, 10 insertions, 1 deletions
diff --git a/libpyside/PySideConfig-spec.cmake.in b/libpyside/PySideConfig-spec.cmake.in
index f363154..9a92546 100644
--- a/libpyside/PySideConfig-spec.cmake.in
+++ b/libpyside/PySideConfig-spec.cmake.in
@@ -4,6 +4,15 @@
# PYSIDE_TYPESYSTEMS - Type system files that should be used by other bindings extending PySide
SET(PYSIDE_INCLUDE_DIR "@CMAKE_INSTALL_PREFIX@/include/PySide@pyside_SUFFIX@")
-SET(PYSIDE_LIBRARY "@LIB_INSTALL_DIR@/@CMAKE_SHARED_LIBRARY_PREFIX@pyside@pyside_SUFFIX@@LIBRARY_OUTPUT_SUFFIX@@SHIBOKEN_PYTHON_SUFFIX@@CMAKE_IMPORT_LIBRARY_SUFFIX@")
+# Platform specific library names
+if(MSVC)
+ SET(PYSIDE_LIBRARY "@LIB_INSTALL_DIR@/@CMAKE_SHARED_LIBRARY_PREFIX@pyside@pyside_SUFFIX@@LIBRARY_OUTPUT_SUFFIX@@SHIBOKEN_PYTHON_SUFFIX@.lib")
+elseif(CYGWIN)
+ SET(PYSIDE_LIBRARY "@LIB_INSTALL_DIR@/@CMAKE_SHARED_LIBRARY_PREFIX@pyside@pyside_SUFFIX@@LIBRARY_OUTPUT_SUFFIX@@SHIBOKEN_PYTHON_SUFFIX@@CMAKE_IMPORT_LIBRARY_SUFFIX@")
+elseif(WIN32)
+ SET(PYSIDE_LIBRARY "@CMAKE_INSTALL_PREFIX@/bin/@CMAKE_SHARED_LIBRARY_PREFIX@pyside@pyside_SUFFIX@@LIBRARY_OUTPUT_SUFFIX@@SHIBOKEN_PYTHON_SUFFIX@@CMAKE_SHARED_LIBRARY_SUFFIX@")
+else()
+ SET(PYSIDE_LIBRARY "@LIB_INSTALL_DIR@/@CMAKE_SHARED_LIBRARY_PREFIX@pyside@pyside_SUFFIX@@LIBRARY_OUTPUT_SUFFIX@@SHIBOKEN_PYTHON_SUFFIX@@CMAKE_SHARED_LIBRARY_SUFFIX@")
+endif()
SET(PYSIDE_PYTHONPATH "@SITE_PACKAGE@")
SET(PYSIDE_TYPESYSTEMS "@CMAKE_INSTALL_PREFIX@/share/PySide@pyside_SUFFIX@/typesystems")