1
0
Fork 0

add lib/ and lib64/ to search path

This commit is contained in:
scttgs0 2023-05-07 15:25:56 -05:00
parent d8ade7ba31
commit 06ccf1ca79

View file

@ -30,13 +30,13 @@ include(SelectLibraryConfigurations)
macro(find_sg_library libName varName libs)
set(libVarName "${varName}_LIBRARY")
# do not cache the library check
unset(${libVarName}_DEBUG CACHE)
unset(${libVarName}_RELEASE CACHE)
# unset(${libVarName}_DEBUG CACHE)
# unset(${libVarName}_RELEASE CACHE)
FIND_LIBRARY(${libVarName}_DEBUG
NAMES ${libName}${CMAKE_DEBUG_POSTFIX}
HINTS $ENV{SIMGEAR_DIR}
PATH_SUFFIXES ${CMAKE_INSTALL_LIBDIR} libs64 libs libs/Win32 libs/Win64
PATH_SUFFIXES ${CMAKE_INSTALL_LIBDIR} lib64 lib libs64 libs libs/Win32 libs/Win64
PATHS
/usr/local
/usr
@ -45,7 +45,7 @@ macro(find_sg_library libName varName libs)
FIND_LIBRARY(${libVarName}_RELEASE
NAMES ${libName}${CMAKE_RELEASE_POSTFIX}
HINTS $ENV{SIMGEAR_DIR}
PATH_SUFFIXES ${CMAKE_INSTALL_LIBDIR} libs64 libs libs/Win32 libs/Win64
PATH_SUFFIXES ${CMAKE_INSTALL_LIBDIR} lib64 lib libs64 libs libs/Win32 libs/Win64
PATHS
/usr/local
/usr
@ -239,4 +239,3 @@ unset(CMAKE_REQUIRED_DEFINITIONS)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(SimGear DEFAULT_MSG
SIMGEAR_LIBRARIES SIMGEAR_CORE_LIBRARIES SIMGEAR_INCLUDE_DIR SIMGEAR_COMPILE_TEST)