Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0980fe commit 85bade3Copy full SHA for 85bade3
CMakeLists.txt
@@ -106,5 +106,10 @@ set(exec_prefix ${CMAKE_INSTALL_PREFIX}/bin)
106
set(libdir ${CMAKE_INSTALL_PREFIX}/lib)
107
set(includedir ${CMAKE_INSTALL_PREFIX}/include/UnitTest++)
108
configure_file("UnitTest++.pc.in" "UnitTest++.pc" @ONLY)
109
+if(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
110
+ set(pkgconfdir ${CMAKE_INSTALL_PREFIX}/libdata/pkgconfig)
111
+else()
112
+ set(pkgconfdir ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig)
113
+endif()
114
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/UnitTest++.pc"
- DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")
115
+ DESTINATION "${pkgconfdir}")
0 commit comments