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:
authorBartosz Taudul <wolf@nereid.pl>2022-05-14 13:48:09 +0300
committerGitHub <noreply@github.com>2022-05-14 13:48:09 +0300
commit6233cf3fdfb7ce1332626724e53a1449676a9715 (patch)
treeecd9ff1dc39448e7b2a3afcb0f4e7029d7a4a3dd /CMakeLists.txt
parentadf3b5803c679d552122a3edd04d7fdb032671ab (diff)
parent80a9865bbf9aaac46ac0afc3cf12223be418a71a (diff)
Merge pull request #380 from Honeybunch/master
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 9e312f97..533eba6d 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})
@@ -122,6 +127,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)