Răsfoiți Sursa

w32-pthreads: Add pthread.h as public header

When exporting w32-pthreads, the public header file `pthread.h` needs
to be exported as well to expose the implemented functionality.
PatTheMav 3 ani în urmă
părinte
comite
6adb973b6a
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      deps/w32-pthreads/CMakeLists.txt

+ 2 - 1
deps/w32-pthreads/CMakeLists.txt

@@ -19,7 +19,8 @@ target_compile_definitions(w32-pthreads PRIVATE __CLEANUP_C PTW32_BUILD)
 target_include_directories(
   w32-pthreads PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>")
 
-set_target_properties(w32-pthreads PROPERTIES FOLDER "deps")
+set_target_properties(w32-pthreads PROPERTIES FOLDER "deps" PUBLIC_HEADER
+                                                            "pthread.h;sched.h")
 
 setup_binary_target(w32-pthreads)
 export_target(w32-pthreads)