Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoneybunch <amt3824@g.rit.edu>2022-05-04 04:31:49 +0300
committerHoneybunch <amt3824@g.rit.edu>2022-05-04 04:31:49 +0300
commit45bd17b7e8cdc7d550c435de4a29b5ba76bc9893 (patch)
treef04e88f87e7050d0dd5ce54cfd7a15f6effcd33a /CMakeLists.txt
parent8bf21bfb8107d528e74e16df46191fcf0f8838a8 (diff)
Slight tweak to get client library working with mingw
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 15991852..c9019d8c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,6 +16,11 @@ target_link_libraries(
${CMAKE_DL_LIBS}
)
+# Public dependency on some libraries required when using Mingw
+if(WIN32 AND ${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
+ target_link_libraries(TracyClient PUBLIC ws2_32 dbghelp)
+endif()
+
if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
find_library(EXECINFO_LIBRARY NAMES execinfo REQUIRED)
target_link_libraries(TracyClient PUBLIC ${EXECINFO_LIBRARY})
@@ -123,6 +128,6 @@ install(FILES ${client_includes}
install(FILES ${common_includes}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/common)
install(EXPORT TracyConfig
- NAMESPACE Tracy::
+ NAMESPACE Tracy::
FILE TracyConfig.cmake
DESTINATION share/Tracy)