Skip to content

Commit b4d4bc7

Browse files
This is ssooooooo dumb, but dems tha rules. (#226)
1 parent 29a7375 commit b4d4bc7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cmake/AwsSharedLibSetup.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ set(LIBRARY_DIRECTORY lib)
1616
if (UNIX AND NOT APPLE)
1717
include(GNUInstallDirs)
1818
set(LIBRARY_DIRECTORY ${CMAKE_INSTALL_LIBDIR})
19+
20+
# this is the absolute dumbest thing in the world, but find_package won't work without it
21+
# also I verified this is correctly NOT "lib64" when CMAKE_C_FLAGS includes "-m32"
22+
if (${LIBRARY_DIRECTORY} STREQUAL "lib64")
23+
set(FIND_LIBRARY_USE_LIB64_PATHS true)
24+
endif()
25+
1926
endif()
2027

2128
function(aws_prepare_shared_lib_exports target)

0 commit comments

Comments
 (0)