Fixed CMake configuration error with -DEMBEDDED_LIB=<path to folder> causing the library not being found.
This commit is contained in:
16
macros.cmake
16
macros.cmake
@ -127,13 +127,17 @@ debugmsg("Search returned: ${MYSQL_DIR_LOC}")
|
|||||||
# Find the embedded mysql library
|
# Find the embedded mysql library
|
||||||
|
|
||||||
if (DEFINED EMBEDDED_LIB)
|
if (DEFINED EMBEDDED_LIB)
|
||||||
debugmsg("Searching for the embedded library at: ${EMBEDDED_LIB}")
|
if( NOT (IS_DIRECTORY ${EMBEDDED_LIB}) )
|
||||||
if(${CMAKE_VERSION} VERSION_LESS 2.12 )
|
debugmsg("EMBEDDED_LIB is not a directory: ${EMBEDDED_LIB}")
|
||||||
set(COMP_VAR PATH)
|
if(${CMAKE_VERSION} VERSION_LESS 2.12 )
|
||||||
else()
|
set(COMP_VAR PATH)
|
||||||
set(COMP_VAR DIRECTORY)
|
else()
|
||||||
|
set(COMP_VAR DIRECTORY)
|
||||||
|
endif()
|
||||||
|
get_filename_component(EMBEDDED_LIB ${EMBEDDED_LIB} ${COMP_VAR})
|
||||||
|
debugmsg("EMBEDDED_LIB directory component: ${EMBEDDED_LIB}")
|
||||||
endif()
|
endif()
|
||||||
get_filename_component(EMBEDDED_LIB ${EMBEDDED_LIB} ${COMP_VAR})
|
debugmsg("Searching for the embedded library at: ${EMBEDDED_LIB}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(STATIC_EMBEDDED)
|
if(STATIC_EMBEDDED)
|
||||||
|
|||||||
Reference in New Issue
Block a user