You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

dependency_securec.cmake 689 B

12345678910111213141516171819202122
  1. # securec library
  2. #
  3. #
  4. # SECUREC_LIBRARY
  5. #
  6. if(NOT TARGET securec)
  7. set(_ms_tmp_CMAKE_POSITION_INDEPENDENT_CODE ${CMAKE_POSITION_INDEPENDENT_CODE})
  8. set(_ms_tmp_CMAKE_C_FLAGS ${CMAKE_C_FLAGS})
  9. set(CMAKE_C_FLAGS "${SECURE_CXX_FLAGS}")
  10. if(CMAKE_SYSTEM_NAME MATCHES "Windows")
  11. add_compile_definitions(SECUREC_ONLY_DECLARE_MEMSET)
  12. endif()
  13. add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/../third_party/securec ${CMAKE_BINARY_DIR}/securec)
  14. set(CMAKE_POSITION_INDEPENDENT_CODE ${_ms_tmp_CMAKE_POSITION_INDEPENDENT_CODE})
  15. set(CMAKE_C_FLAGS ${_ms_tmp_CMAKE_C_FLAGS})
  16. endif()
  17. include_directories(${CMAKE_CURRENT_LIST_DIR}/../third_party/securec/include)
  18. set(SECUREC_LIBRARY securec)