--- sdk/codelite_indexer/CMakeLists.txt.orig
+++ sdk/codelite_indexer/CMakeLists.txt
@@ -33,7 +33,7 @@
 
 # Define the output
 add_executable(codelite_indexer ${SRCS})
-target_link_libraries(codelite_indexer ${LINKER_OPTIONS} ${wxWidgets_LIBRARIES})
+target_link_libraries(codelite_indexer ${LINKER_OPTIONS} ${wxWidgets_LIBRARIES} -pthread)
 
 install(TARGETS codelite_indexer DESTINATION ${CL_PREFIX}/bin)
 
