summaryrefslogtreecommitdiffstats
path: root/libshiboken/ShibokenConfig.cmake.in
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-08-20 11:22:15 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2010-08-20 11:48:47 -0300
commit7424b2743cd1d00740af92965582b9e9c8391960 (patch)
tree8b7840933dcd63dc0596a24127db43f4eb079b10 /libshiboken/ShibokenConfig.cmake.in
parent5dcd01b645743816d6e7976b446d6f12eb7eaa33 (diff)
downloadshiboken-7424b2743cd1d00740af92965582b9e9c8391960.tar.gz
shiboken-7424b2743cd1d00740af92965582b9e9c8391960.tar.xz
shiboken-7424b2743cd1d00740af92965582b9e9c8391960.zip
Fixed config file to work on windows.
Diffstat (limited to 'libshiboken/ShibokenConfig.cmake.in')
-rw-r--r--libshiboken/ShibokenConfig.cmake.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/libshiboken/ShibokenConfig.cmake.in b/libshiboken/ShibokenConfig.cmake.in
index a21898b3..f6c27546 100644
--- a/libshiboken/ShibokenConfig.cmake.in
+++ b/libshiboken/ShibokenConfig.cmake.in
@@ -2,4 +2,10 @@
# SHIBOKEN_LIBRARIES - Files to link against to use SHIBOKEN
SET(SHIBOKEN_INCLUDE_DIR "@CMAKE_INSTALL_PREFIX@/include/shiboken")
-SET(SHIBOKEN_LIBRARY "@LIB_INSTALL_DIR@/@CMAKE_SHARED_LIBRARY_PREFIX@shiboken@CMAKE_SHARED_LIBRARY_SUFFIX@")
+if(MSVC)
+ SET(SHIBOKEN_LIBRARY "@LIB_INSTALL_DIR@/@CMAKE_SHARED_LIBRARY_PREFIX@shiboken.lib")
+elseif(WIN32)
+ SET(SHIBOKEN_LIBRARY "@LIB_INSTALL_DIR@/bin/@CMAKE_SHARED_LIBRARY_PREFIX@shiboken@CMAKE_SHARED_LIBRARY_SUFFIX@")
+else()
+ SET(SHIBOKEN_LIBRARY "@LIB_INSTALL_DIR@/@CMAKE_SHARED_LIBRARY_PREFIX@shiboken@CMAKE_SHARED_LIBRARY_SUFFIX@")
+endif()