Skip to content

Instantly share code, notes, and snippets.

@ArtDu
Last active February 25, 2022 17:41
Show Gist options
  • Save ArtDu/c958562cc3c08f5688d5ec40d08d0e6e to your computer and use it in GitHub Desktop.
Save ArtDu/c958562cc3c08f5688d5ec40d08d0e6e to your computer and use it in GitHub Desktop.
CLION add compiler flag -pthread
//for c compiler
set(GCC_COVERAGE_COMPILE_FLAGS "-pthread")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${GCC_COVERAGE_COMPILE_FLAGS}" )
//for c++
SET(CMAKE_CXX_FLAGS -pthread)
@MaherElAchkar
Copy link

thx a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment