cmake: fix pkgconfig dir path on FreeBSD · unittest-cpp/unittest-cpp@85bade3 · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

Commit 85bade3

Browse files
committed
cmake: fix pkgconfig dir path on FreeBSD
1 parent d0980fe commit 85bade3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,5 +106,10 @@ set(exec_prefix ${CMAKE_INSTALL_PREFIX}/bin)
106106
set(libdir ${CMAKE_INSTALL_PREFIX}/lib)
107107
set(includedir ${CMAKE_INSTALL_PREFIX}/include/UnitTest++)
108108
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()
109114
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/UnitTest++.pc"
110-
DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")
115+
DESTINATION "${pkgconfdir}")

0 commit comments

Comments
 (0)

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.