Skip to content

Commit

Permalink
fix glog x64 build
Browse files Browse the repository at this point in the history
  • Loading branch information
N3TC4T committed Feb 19, 2020
1 parent 5b48bde commit a18ab51
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion builds/deps/Glog.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,20 @@ ExternalProject_Add(project_glog
-DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>
)

get_property(LIB64 GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS)
if(LIB64)
set(LIBSUFFIX 64)
else()
set(LIBSUFFIX "")
endif()

# Create glog imported library
ExternalProject_Get_Property(project_glog INSTALL_DIR)
add_library(glog STATIC IMPORTED)
add_dependencies(glog project_glog)

set(GLOG_INCLUDE_DIR ${INSTALL_DIR}/include)
set(GLOG_LIBRARY ${INSTALL_DIR}/lib/libglog.a)
set(GLOG_LIBRARY ${INSTALL_DIR}/lib${LIBSUFFIX}/libglog.a)

file(MAKE_DIRECTORY ${GLOG_INCLUDE_DIR})
set_target_properties(glog PROPERTIES
Expand Down

0 comments on commit a18ab51

Please sign in to comment.