File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
pkgs/by-name/mo/modern-cpp-kafka Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -53,13 +53,18 @@ stdenv.mkDerivation rec {
5353 buildInputs = [ boost ] ;
5454 propagatedBuildInputs = [ rdkafka ] ;
5555
56- cmakeFlags = [
57- "-DLIBRDKAFKA_INCLUDE_DIR=${ rdkafka . out } /include"
58- "-DGTEST_LIBRARY_DIR=${ gtest . out } /lib"
59- "-DGTEST_INCLUDE_DIR=${ gtest . dev } /include"
60- "-DRAPIDJSON_INCLUDE_DIRS=${ rapidjson . out } /include"
61- "-DCMAKE_CXX_FLAGS=-Wno-uninitialized"
62- ] ;
56+ cmakeFlags =
57+ let
58+ inherit ( lib ) cmakeFeature getLib getInclude ;
59+ in
60+ [
61+ ( cmakeFeature "LIBRDKAFKA_LIBRARY_DIR" "${ getLib rdkafka } /lib" )
62+ ( cmakeFeature "LIBRDKAFKA_INCLUDE_DIR" "${ getInclude rdkafka } /include" )
63+ ( cmakeFeature "GTEST_LIBRARY_DIR" "${ getLib gtest } /lib" )
64+ ( cmakeFeature "GTEST_INCLUDE_DIR" "${ getInclude gtest } /include" )
65+ ( cmakeFeature "RAPIDJSON_INCLUDE_DIRS" "${ getInclude rapidjson } /include" )
66+ ( cmakeFeature "CMAKE_CXX_FLAGS" "-Wno-uninitialized" )
67+ ] ;
6368
6469 checkInputs = [
6570 gtest
You can’t perform that action at this time.
0 commit comments