Last active
February 25, 2022 17:41
-
-
Save ArtDu/c958562cc3c08f5688d5ec40d08d0e6e to your computer and use it in GitHub Desktop.
CLION add compiler flag -pthread
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thx a lot