mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-02 17:50:53 +02:00
Fixed ${CMAKE_THREAD_LIBS_INIT} being empty during the compilation
The directive checking for the native threads library must be called before everything else.
This commit is contained in:
parent
8895045fb5
commit
ce8e88cc4b
@ -139,6 +139,9 @@ include(DefinePlatformSpecifc)
|
|||||||
# Collect the built libraries and include dirs, the will be used to create the PocoConfig.cmake file
|
# Collect the built libraries and include dirs, the will be used to create the PocoConfig.cmake file
|
||||||
set(Poco_COMPONENTS "")
|
set(Poco_COMPONENTS "")
|
||||||
|
|
||||||
|
# Pthreads/threads support
|
||||||
|
find_package(Threads REQUIRED)
|
||||||
|
|
||||||
if (ENABLE_TESTS)
|
if (ENABLE_TESTS)
|
||||||
add_subdirectory(CppUnit)
|
add_subdirectory(CppUnit)
|
||||||
endif ()
|
endif ()
|
||||||
@ -169,9 +172,6 @@ add_subdirectory(Net)
|
|||||||
list(APPEND Poco_COMPONENTS "Net")
|
list(APPEND Poco_COMPONENTS "Net")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Pthreads/threads support
|
|
||||||
find_package(Threads REQUIRED)
|
|
||||||
|
|
||||||
#NetSSL
|
#NetSSL
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user