aboutsummaryrefslogtreecommitdiffstats
path: root/ApiExtractorConfig.cmake.in
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.lima@openbossa.org>2010-06-11 16:11:32 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:05 -0300
commitbb81e23761fdff05f2becaa90839ae3384c28fd5 (patch)
treebe38d92a5f5e1f67bb8fe5466cae57dc12f96286 /ApiExtractorConfig.cmake.in
parentb23a67365cfa2e93f71aea81feeca51c08b4f24e (diff)
Fix compilation and instalation on MSVC.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'ApiExtractorConfig.cmake.in')
-rw-r--r--ApiExtractorConfig.cmake.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/ApiExtractorConfig.cmake.in b/ApiExtractorConfig.cmake.in
index 3faf366b..6c4001ff 100644
--- a/ApiExtractorConfig.cmake.in
+++ b/ApiExtractorConfig.cmake.in
@@ -3,4 +3,8 @@
# APIEXTRACTOR_LIBRARIES - Files to link against to use APIEXTRACTOR
SET(APIEXTRACTOR_INCLUDE_DIR "@CMAKE_INSTALL_PREFIX@/include/apiextractor")
-SET(APIEXTRACTOR_LIBRARY "@LIB_INSTALL_DIR@/@CMAKE_SHARED_LIBRARY_PREFIX@apiextractor@CMAKE_SHARED_LIBRARY_SUFFIX@")
+if(MSVC)
+ SET(APIEXTRACTOR_LIBRARY "@LIB_INSTALL_DIR@/@CMAKE_SHARED_LIBRARY_PREFIX@apiextractor.lib")
+else()
+ SET(APIEXTRACTOR_LIBRARY "@LIB_INSTALL_DIR@/@CMAKE_SHARED_LIBRARY_PREFIX@apiextractor@CMAKE_SHARED_LIBRARY_SUFFIX@")
+endif() \ No newline at end of file