You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
581 B
20 lines
581 B
5 years ago
|
# securec library
|
||
|
#
|
||
|
#
|
||
|
# SECUREC_LIBRARY
|
||
|
#
|
||
|
|
||
|
if (NOT TARGET securec)
|
||
|
set(_ms_tmp_CMAKE_POSITION_INDEPENDENT_CODE ${CMAKE_POSITION_INDEPENDENT_CODE})
|
||
|
set(_ms_tmp_CMAKE_C_FLAGS ${CMAKE_C_FLAGS})
|
||
|
|
||
|
set(CMAKE_C_FLAGS "${SECURE_CXX_FLAGS}")
|
||
|
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/../third_party/securec ${CMAKE_BINARY_DIR}/securec)
|
||
|
set(CMAKE_POSITION_INDEPENDENT_CODE ${_ms_tmp_CMAKE_POSITION_INDEPENDENT_CODE})
|
||
|
set(CMAKE_C_FLAGS ${_ms_tmp_CMAKE_C_FLAGS})
|
||
|
endif()
|
||
|
|
||
|
include_directories(${CMAKE_CURRENT_LIST_DIR}/../third_party/securec/include)
|
||
|
|
||
|
set(SECUREC_LIBRARY securec)
|