mirror of https://github.com/intel/gmmlib.git
Linking pthread Library to GmmLib Dll
Change-Id: I81c09afb02a1869e0567393d99da5371c8c5d8cf
This commit is contained in:
parent
413896ed8e
commit
9e4aa143fb
|
@ -417,6 +417,9 @@ else()
|
|||
set_target_properties(${GMM_LIB_DLL_NAME} PROPERTIES OUTPUT_NAME "igdgmm")
|
||||
set_target_properties(${GMM_LIB_DLL_NAME} PROPERTIES VERSION ${GMMLIB_API_MAJOR_VERSION}.${GMMLIB_API_MINOR_VERSION}.${PATCH_VERSION})
|
||||
set_target_properties(${GMM_LIB_DLL_NAME} PROPERTIES SOVERSION ${GMMLIB_API_MAJOR_VERSION})
|
||||
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
||||
find_package(Threads REQUIRED)
|
||||
target_link_libraries(${GMM_LIB_DLL_NAME} Threads::Threads)
|
||||
|
||||
endif()
|
||||
|
||||
|
|
|
@ -95,6 +95,7 @@ SET (GMMLIB_COMPILER_CXX_FLAGS_COMMON
|
|||
-fexceptions
|
||||
-fcheck-new
|
||||
-std=c++11
|
||||
-pthread
|
||||
)
|
||||
|
||||
SET (GMMLIB_COMPILER_FLAGS_DEBUG
|
||||
|
|
Loading…
Reference in New Issue