Skip to content

Commit

Permalink
Merge pull request #89 from accelerated/pkg_config
Browse files Browse the repository at this point in the history
Removed boost_context dependency from pkgconfig file and added BITNES…
  • Loading branch information
Alex Damian authored May 20, 2019
2 parents ba1b955 + c607151 commit 004dcaa
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ if (QUANTUM_VERBOSE_MAKEFILE)
message(STATUS "CMAKE_CXX_FLAGS = ${CMAKE_CXX_FLAGS}")
endif()

# Determine if this is a 32 or 64 bit build
string(FIND ${CMAKE_CXX_FLAGS} "-m64" BITNESS)

# Properly set the output directory
if (${BITNESS} EQUAL -1)
set(LIBDIR "lib")
else()
set(LIBDIR "lib64")
endif()

add_definitions(
-D_REENTRANT
-D_THREAD_SAFE
Expand Down
8 changes: 4 additions & 4 deletions quantum.pc.in
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
libdir=${prefix}/lib
sharedlibdir=${prefix}/lib
libdir=${prefix}/@LIBDIR@
sharedlibdir=${prefix}/@LIBDIR@
includedir=${prefix}/include

Name: quantum
Url: https://github.com/bloomberg/quantum
Description: C++ coroutine library using Boost.Coroutine2
Version: @QUANTUM_VERSION@
Requires.private: boost_context >= 1.61
Libs: -L${libdir} -L${sharedlibdir} -L@Boost_LIBRARY_DIRS@ -lboost_context -lpthread
Cflags: -I${includedir} -I@Boost_INCLUDE_DIRS@
Libs: -L${libdir} -L${sharedlibdir}
Cflags: -I${includedir}

0 comments on commit 004dcaa

Please sign in to comment.