mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
Summary: Ignore mixed upper-case/lower-case style for now Fix space between function and its arguments violation Pull Request resolved: https://github.com/pytorch/pytorch/pull/35574 Test Plan: CI Differential Revision: D20712969 Pulled By: malfet fbshipit-source-id: 0012d430aed916b4518599a0b535e82d15721f78
20 lines
681 B
CMake
20 lines
681 B
CMake
if(NOT CAFFE2_CMAKE_BUILDING_WITH_MAIN_REPO)
|
|
# If we are building the standalone module, we set the proper cmake variables.
|
|
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
|
|
find_package(Caffe2 REQUIRED)
|
|
set(BUILD_TEST ON)
|
|
option(BUILD_SHARED_LIBS "Build shared libs." ON)
|
|
endif()
|
|
|
|
if(BUILD_TEST)
|
|
add_library(
|
|
caffe2_module_test_dynamic
|
|
${CMAKE_CURRENT_SOURCE_DIR}/module_test_dynamic.cc)
|
|
|
|
target_link_libraries(caffe2_module_test_dynamic torch_library)
|
|
install(TARGETS caffe2_module_test_dynamic DESTINATION lib)
|
|
if(MSVC AND BUILD_SHARED_LIBS)
|
|
install(FILES $<TARGET_PDB_FILE:caffe2_module_test_dynamic> DESTINATION lib OPTIONAL)
|
|
endif()
|
|
endif()
|