Skip to content

Commit 4ef33cc

Browse files
epicoPeng Wu
andauthored
Co-authored-by: Peng Wu <pwu@redhat.com>
1 parent 3e8be92 commit 4ef33cc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ option(ENABLE_GPERFTOOLS_PROFILER "Find and link gperftools profiler" OFF)
1313
option(ENABLE_COVERAGE "Enable code coverage instrumentation (only enabled with BUILD_TESTING)" OFF)
1414
option(ENABLE_STATIC_STDLIB "Link C++ stdlib statically" OFF)
1515

16+
include(GNUInstallDirs)
17+
set(LIB_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}" CACHE PATH "")
18+
19+
if(CMAKE_INSTALL_LIBDIR MATCHES "lib64$")
20+
set(LIB_SUFFIX 64)
21+
endif()
22+
1623
function(check_macro_defined MACRO OUTPUT_VAR)
1724
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
1825
try_compile(result

0 commit comments

Comments
 (0)