diff --git a/fizz/CMakeLists.txt b/fizz/CMakeLists.txt index 85ddfe42dc0..7132834ac9f 100644 --- a/fizz/CMakeLists.txt +++ b/fizz/CMakeLists.txt @@ -39,11 +39,11 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) set(INCLUDE_INSTALL_DIR include CACHE STRING "The subdirectory where header files should be installed") -set(LIB_INSTALL_DIR lib CACHE STRING +set(LIB_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR} CACHE STRING "The subdirectory where libraries should be installed") set(BIN_INSTALL_DIR bin CACHE STRING "The subdirectory where binaries should be installed") -set(CMAKE_INSTALL_DIR lib/cmake/fizz CACHE STRING +set(CMAKE_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}/cmake/fizz CACHE STRING "The subdirectory where CMake package config files should be installed") find_package(folly CONFIG REQUIRED)