lordgamez commented on a change in pull request #1166:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1166#discussion_r702871594



##########
File path: cmake/BundledYamlCpp.cmake
##########
@@ -16,39 +16,51 @@
 # under the License.
 
 function(use_bundled_yamlcpp SOURCE_DIR BINARY_DIR)
+    if (WIN32)
+        set(CMAKE_INSTALL_LIBDIR "lib")
+    else()
+        include(GNUInstallDirs)
+    endif()
+
     # Define byproducts
     if (WIN32)
-        if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
-            set(BYPRODUCT "lib/libyaml-cppmdd.lib")
-        else()
-            set(BYPRODUCT "lib/libyaml-cppmd.lib")
-        endif()
+        set(BYPRODUCT "${CMAKE_INSTALL_LIBDIR}/yaml-cpp.lib")
     else()
-        set(BYPRODUCT "lib/libyaml-cpp.a")
+        set(BYPRODUCT "${CMAKE_INSTALL_LIBDIR}/libyaml-cpp.a")
     endif()
 
     # Set build options
     set(YAMLCPP_CMAKE_ARGS ${PASSTHROUGH_CMAKE_ARGS}
-            "-DCMAKE_INSTALL_PREFIX=${BINARY_DIR}/thirdparty/yaml-cpp-install")
+            "-DCMAKE_INSTALL_PREFIX=${BINARY_DIR}/thirdparty/yaml-cpp-install"
+            "-DCMAKE_DEBUG_POSTFIX="
+            "-DBUILD_SHARED_LIBS=OFF"
+            "-DYAML_CPP_BUILD_TESTS=OFF"
+            "-DYAML_CPP_BUILD_TOOLS=OFF")
 
     # Build project
     ExternalProject_Add(
             yaml-cpp-external
-            SOURCE_DIR "${SOURCE_DIR}/thirdparty/yaml-cpp-yaml-cpp-20171024"
+            GIT_REPOSITORY "https://github.com/jbeder/yaml-cpp.git";
+            GIT_TAG "yaml-cpp-0.7.0"

Review comment:
       Good point, replaced it in f4946e92e5724d97e95163fa8c3b3797669f14a7




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to