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 581 B

12345678910111213141516171819
  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. add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/../third_party/securec ${CMAKE_BINARY_DIR}/securec)
  11. set(CMAKE_POSITION_INDEPENDENT_CODE ${_ms_tmp_CMAKE_POSITION_INDEPENDENT_CODE})
  12. set(CMAKE_C_FLAGS ${_ms_tmp_CMAKE_C_FLAGS})
  13. endif()
  14. include_directories(${CMAKE_CURRENT_LIST_DIR}/../third_party/securec/include)
  15. set(SECUREC_LIBRARY securec)