Fix macos link error (#423)
* Fix macos link error * Update CMakeLists.txt * Update CMakeLists.txt
This commit is contained in:
		| @@ -251,7 +251,7 @@ if (WIN32) | |||||||
|   endif() |   endif() | ||||||
| endif() | endif() | ||||||
|  |  | ||||||
| if (UNIX) | if (UNIX AND NOT APPLE) | ||||||
|   set(THREADS_PREFER_PTHREAD_FLAG TRUE) |   set(THREADS_PREFER_PTHREAD_FLAG TRUE) | ||||||
|   find_package(Threads) |   find_package(Threads) | ||||||
|   target_link_libraries(ixwebsocket PRIVATE Threads::Threads) |   target_link_libraries(ixwebsocket PRIVATE Threads::Threads) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user