CMAKE bug fixed when SHARED and EXAMPLES are on (#597)
Co-authored-by: andre <andre@pop-os.localdomain>
This commit is contained in:
parent
2ffd4738b2
commit
3d9278cb82
|
@ -30,6 +30,13 @@ set(INSTALL_DROGON_CMAKE_DIR
|
|||
if(BUILD_DROGON_SHARED)
|
||||
set(BUILD_TRANTOR_SHARED TRUE)
|
||||
set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
|
||||
set(CMAKE_THREAD_LIBS_INIT "-lpthread")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
|
||||
set(CMAKE_HAVE_THREADS_LIBRARY 1)
|
||||
set(CMAKE_USE_WIN32_THREADS_INIT 0)
|
||||
set(CMAKE_USE_PTHREADS_INIT 1)
|
||||
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
||||
# set(BUILD_EXAMPLES FALSE)
|
||||
list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES
|
||||
"${CMAKE_INSTALL_PREFIX}/${INSTALL_LIB_DIR}" isSystemDir)
|
||||
if("${isSystemDir}" STREQUAL "-1")
|
||||
|
|
Loading…
Reference in New Issue