Skip to content

Commit

Permalink
The standard install location of glog and gflags on OS X is not part …
Browse files Browse the repository at this point in the history
…of the default library search paths. We rely on find_library to locate those two libraries.
  • Loading branch information
Dalzhim committed Apr 28, 2016
1 parent 3581b30 commit b54d2dc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wangle/CMakeLists.txt
Expand Up @@ -18,6 +18,8 @@ find_package(Folly REQUIRED)
find_package(Boost REQUIRED COMPONENTS system thread filesystem)
find_package(OpenSSL REQUIRED)
find_package(Threads REQUIRED)
find_library(GLOG_LIBRARY_PATH glog)
find_library(GFLAGS_LIBRARY_PATH gflags)

include_directories(
${CMAKE_SOURCE_DIR}/..
Expand Down Expand Up @@ -79,8 +81,8 @@ target_link_libraries(wangle
${FOLLY_LIBRARIES}
${Boost_LIBRARIES}
${OPENSSL_LIBRARIES}
-lglog
-lgflags
${GLOG_LIBRARY_PATH}
${GFLAGS_LIBRARY_PATH}
-latomic)

install(TARGETS wangle DESTINATION lib)
Expand Down

0 comments on commit b54d2dc

Please sign in to comment.