blob: d123a2f2046dcc9de70b6624cdf85a87824296b1 [file] [log] [blame] [edit]
--- yaml-cpp-yaml-cpp-0.6.2/CMakeLists.txt.orig 2018-03-06 01:56:23.000000000 -0300
+++ yaml-cpp-yaml-cpp-0.6.2/CMakeLists.txt 2018-04-23 16:48:09.855961800 -0300
@@ -320,7 +320,7 @@
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/yaml-cpp-config.cmake.in
"${PROJECT_BINARY_DIR}/yaml-cpp-config.cmake" @ONLY)
-if(WIN32 AND NOT CYGWIN)
+if(WIN32 AND NOT CYGWIN AND NOT MINGW)
set(INSTALL_CMAKE_DIR CMake)
else()
set(INSTALL_CMAKE_DIR ${LIB_INSTALL_DIR}/cmake/yaml-cpp)
@@ -340,7 +340,7 @@
DESTINATION "${INSTALL_CMAKE_DIR}" COMPONENT dev)
install(EXPORT yaml-cpp-targets DESTINATION ${INSTALL_CMAKE_DIR})
- if(UNIX)
+ if(UNIX OR MINGW)
set(PC_FILE ${CMAKE_BINARY_DIR}/yaml-cpp.pc)
configure_file("yaml-cpp.pc.cmake" ${PC_FILE} @ONLY)
install(FILES ${PC_FILE} DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)