Skip to content

Commit 19a6b7c

Browse files
committed
threads required
1 parent 088f4b8 commit 19a6b7c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,9 @@ set(TARGET_NAME ${CMAKE_PROJECT_NAME})
1010
set(CMAKE_CXX_STANDARD 11)
1111
set(CMAKE_CXX_STANDARD_REQUIRED True)
1212

13+
find_package(Threads REQUIRED)
14+
1315
add_executable(${TARGET_NAME})
1416
target_sources(${TARGET_NAME} PRIVATE hello.cpp)
17+
18+
target_link_libraries(${TARGET_NAME} PRIVATE Threads::Threads)

0 commit comments

Comments
 (0)