Skip to content

Instantly share code, notes, and snippets.

@thendrix
Created February 10, 2020 09:32
Show Gist options
  • Save thendrix/633808fdf60e3a40a028da4ebb4d4aba to your computer and use it in GitHub Desktop.
Save thendrix/633808fdf60e3a40a028da4ebb4d4aba to your computer and use it in GitHub Desktop.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d8a0283..dde9c43 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -34,4 +34,7 @@ target_sources(img2ktx PRIVATE
add_subdirectory(third_party)
# This line should be in third_party/CMakeLists.txt, but would require CMake 3.13 (see CMP0079 for details)
target_link_libraries(img2ktx PRIVATE Compressonator)
+if(${UNIX})
+ target_link_libraries(img2ktx PRIVATE pthread)
+endif()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment