fix build shared library failed
Some checks failed
linux-mips64-gcc / linux-gcc-mips64el (push) Failing after 1m8s
linux-hisiv500-gcc / linux-gcc-hisiv500 (push) Successful in 59s
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Successful in 49s
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Successful in 50s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Successful in 51s
linux-x64-gcc / linux-gcc (push) Successful in 1m0s
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Successful in 1m7s
Some checks failed
linux-mips64-gcc / linux-gcc-mips64el (push) Failing after 1m8s
linux-hisiv500-gcc / linux-gcc-hisiv500 (push) Successful in 59s
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Successful in 49s
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Successful in 50s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Successful in 51s
linux-x64-gcc / linux-gcc (push) Successful in 1m0s
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Successful in 1m7s
This commit is contained in:
parent
334c1d9572
commit
d154e7b38e
@ -12,7 +12,9 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
|||||||
if (ULIB_SHARED_LIB)
|
if (ULIB_SHARED_LIB)
|
||||||
add_library(${PROJECT_NAME} SHARED "")
|
add_library(${PROJECT_NAME} SHARED "")
|
||||||
else()
|
else()
|
||||||
add_library(${PROJECT_NAME} STATIC ""
|
add_library(${PROJECT_NAME} STATIC "")
|
||||||
|
endif()
|
||||||
|
target_sources(${PROJECT_NAME} PRIVATE
|
||||||
src/ulib/concorrency/mutex.cpp
|
src/ulib/concorrency/mutex.cpp
|
||||||
src/ulib/concorrency/mutex.h
|
src/ulib/concorrency/mutex.h
|
||||||
src/ulib/concorrency/condition_variable.cpp
|
src/ulib/concorrency/condition_variable.cpp
|
||||||
@ -23,7 +25,6 @@ else()
|
|||||||
src/ulib/concorrency/internal/condition_variable_impl.h
|
src/ulib/concorrency/internal/condition_variable_impl.h
|
||||||
src/ulib/concorrency/event.cpp
|
src/ulib/concorrency/event.cpp
|
||||||
src/ulib/concorrency/event.h)
|
src/ulib/concorrency/event.h)
|
||||||
endif()
|
|
||||||
|
|
||||||
find_package(Threads REQUIRED)
|
find_package(Threads REQUIRED)
|
||||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user