Commit 0e834ea1 authored by Dan Notestein's avatar Dan Notestein

Update CMakeLists.txt to resolve CMAKE_IMPORT_LIBRARY_SUFFIX to it's value...

Update CMakeLists.txt to resolve CMAKE_IMPORT_LIBRARY_SUFFIX to it's value instead of just being a string
parent 5da07f20
......@@ -89,7 +89,7 @@ else()
add_definitions(-DSNAPPY)
include_directories(${SNAPPY_INCLUDE_DIR})
if(ROCKSDB_STATIC)
set (LIBRARY_SUFFIX CMAKE_IMPORT_LIBRARY_SUFFIX)
set (LIBRARY_SUFFIX ${CMAKE_IMPORT_LIBRARY_SUFFIX})
set (CMAKE_FIND_LIBRARY_SUFFIXES .a)
find_library(STATIC_SNAPPY snappy REQUIRED)
list(APPEND THIRDPARTY_LIBS ${STATIC_SNAPPY})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment