Skip to content

Commit 5c97a83

Browse files
committed
chore: Remove extra pthread parameters
1 parent 17d90f5 commit 5c97a83

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/frontend/CMakeLists.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,20 @@ aux_source_directory(cxx SOURCES)
2121

2222
add_executable(cxx ${SOURCES})
2323

24-
target_link_libraries(cxx cxx-parser cxx-lsp)
24+
target_link_libraries(cxx PRIVATE cxx-parser cxx-lsp)
2525

2626
target_compile_definitions(cxx PRIVATE
2727
CXX_VERSION="${CMAKE_PROJECT_VERSION}"
2828
)
2929

3030
# if cmake founds the Threads package, link with it
3131
if(Threads_FOUND)
32-
target_link_libraries(cxx Threads::Threads)
33-
target_compile_options(cxx PRIVATE -pthread)
32+
target_link_libraries(cxx PRIVATE Threads::Threads)
3433
else()
35-
target_compile_definitions(cxx PRIVATE CXX_NO_THREADS)
34+
target_compile_definitions(cxx PRIVATE CXX_NO_THREADS)
3635
endif()
3736

3837
if(EMSCRIPTEN)
39-
target_link_options(cxx PRIVATE -pthread)
4038
target_link_options(cxx PRIVATE
4139
"SHELL:-s EXIT_RUNTIME=1"
4240
"SHELL:-s WASM_BIGINT=1"

0 commit comments

Comments
 (0)