Linking pthread Library to GmmLib Dll

Change-Id: I81c09afb02a1869e0567393d99da5371c8c5d8cf
This commit is contained in:
johnbash 2019-01-15 13:31:27 -08:00 committed by Prajapati, Dimpalben R
parent 413896ed8e
commit 9e4aa143fb
2 changed files with 4 additions and 0 deletions

View File

@ -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()

View File

@ -95,6 +95,7 @@ SET (GMMLIB_COMPILER_CXX_FLAGS_COMMON
-fexceptions
-fcheck-new
-std=c++11
-pthread
)
SET (GMMLIB_COMPILER_FLAGS_DEBUG