Skip to content

Commit

Permalink
fixed hardcoded paths with variables. (capstone-engine#1018)
Browse files Browse the repository at this point in the history
* fixed hardcoded paths with variables.

cmake pkg-config file fixed hardcoded paths with variables. CMakeLists.txt line 394 needs to be modified
> configure_file("capstone.pc.in" "capstone.pc" @only)

* forgot to add 64bit support variable.
  • Loading branch information
ferdna authored and aquynh committed Sep 27, 2017
1 parent a279481 commit a1eeb6f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions capstone.pc.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
libdir=${prefix}/lib@LIBSUFFIX@
includedir=${prefix}/include

Name: capstone
Description: Capstone disassembly engine
Version: @VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_PATCH@
URL: http://www.capstone-engine.org
archive=@CMAKE_INSTALL_PREFIX@/lib/libcapstone.a
Libs: -L@CMAKE_INSTALL_PREFIX@/lib -lcapstone
Cflags: -I@CMAKE_INSTALL_PREFIX@/include/capstone
archive=${libdir}/libcapstone.a
Libs: -L${libdir} -lcapstone
Cflags: -I${includedir}

0 comments on commit a1eeb6f

Please sign in to comment.