diff --git a/CMakeLists.txt b/CMakeLists.txt index 7e99cd5656..6b62df0935 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -221,9 +221,9 @@ if(NOT TARGET cpuinfo) set(CPUINFO_BUILD_UNIT_TESTS OFF CACHE BOOL "Do not build cpuinfo unit tests") set(CPUINFO_BUILD_MOCK_TESTS OFF CACHE BOOL "Do not build cpuinfo mock tests") set(CPUINFO_BUILD_BENCHMARKS OFF CACHE BOOL "Do not build cpuinfo benchmarks") - set(CPUINFO_LIBRARY_TYPE static) + set(CPUINFO_LIBRARY_TYPE static CACHE string "Set lib type to static") #Select static runtime, needed for static build for MSVC - set(CPUINFO_RUNTIME_TYPE static) + set(CPUINFO_RUNTIME_TYPE static CACHE string "Set runtime to static") add_subdirectory("${CPUINFO_SOURCE_DIR}" "${FBGEMM_BINARY_DIR}/cpuinfo") set_property(TARGET cpuinfo PROPERTY POSITION_INDEPENDENT_CODE ON) endif()