Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Put the right libdir in the .pc file on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsansome committed Aug 8, 2015
1 parent f097f60 commit 81bf9b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ if (${HAVE_LIBIMOBILEDEVICE})
set(LIBIMOBILEDEVICE_REQ "libimobiledevice-1.0")
endif ()

if (WIN32)
set(LIBRARY_INSTALL_PATH "${CMAKE_INSTALL_PREFIX}/bin")
else ()
set(LIBRARY_INSTALL_PATH "${CMAKE_INSTALL_PREFIX}/lib")
endif ()

configure_file(config.h.in config.h)
configure_file(libgpod-1.0.pc.in libgpod-1.0.pc @ONLY)

Expand Down
2 changes: 1 addition & 1 deletion libgpod-1.0.pc.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=@CMAKE_INSTALL_PREFIX@
libdir=@CMAKE_INSTALL_PREFIX@/lib
libdir=@LIBRARY_INSTALL_PATH@
includedir=@CMAKE_INSTALL_PREFIX@/include

Name: libgpod
Expand Down

0 comments on commit 81bf9b5

Please sign in to comment.