GerHobbelt / pthread-win32

clone of pthread-win32 (a.k.a. pthreads4w) + local tweaks (including MSVC2008 - MSVC2022 project files)
Other
350 stars 166 forks source link

Support building from a subdirectory of a larger project. #15

Closed ulatekh closed 3 years ago

ulatekh commented 3 years ago

To support using this CMakeLists.txt file as an add_subdirectory() of a higher-level project, change CMAKE_SOURCE_DIR to CMAKE_CURRENT_SOURCE_DIR, CMAKE_BINARY_DIR to CMAKE_CURRENT_BINARY_DIR, and let values be set for otherwise internally-used variables (CMAKE_DEBUG_POSTFIX, DLLDEST, LIBDEST, HDRDEST, and TESTDEST).

GerHobbelt commented 3 years ago

Thanks! 👍