Fix Linux parse of PeglibThreads.cmake

pull/247/head
Oliver Smith 2 years ago
parent d722e02487
commit 9c093a802b
  1. 4
      cmake/PeglibThreads.cmake

@ -7,7 +7,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
find_package(Threads REQUIRED)
target_compile_options(CppPegLib "-pthread")
target_link_libraries(CppPegLib Threads::Threads)
target_compile_options(CppPegLib INTERFACE -pthread)
target_link_libraries(CppPegLib INTERFACE Threads::Threads)
endif()

Loading…
Cancel
Save