Skip to content

Commit

Permalink
Dont link with Threads on NOTHREADS
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-F5 committed Oct 2, 2024
1 parent 132fc31 commit 268f045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ set_property(TARGET ${PROJECT_NAME} PROPERTY POSITION_INDEPENDENT_CODE ON)

if (MSVC)
add_compile_definitions("_CRT_SECURE_NO_WARNINGS")
else()
elseif(NOT NOTHREADS)
find_package(Threads REQUIRED)
target_link_libraries(${PROJECT_NAME} PUBLIC Threads::Threads)
endif()
Expand Down

0 comments on commit 268f045

Please sign in to comment.