From 2e75ad6268ff996240126e7d4b60d914d7aab7aa Mon Sep 17 00:00:00 2001 From: Snaipe Date: Tue, 12 Jan 2016 22:28:45 +0100 Subject: [PATCH] Fixed MinGW builds receiving -lpthread wrongly --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 75dc168..c206719 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -261,7 +261,9 @@ endif () if (MSVC) target_link_libraries(criterion wingetopt) -else () +endif () + +if (NOT WIN32) target_link_libraries(criterion pthread) endif ()