Skip to content

Commit 687e6fb

Browse files
committed
~ CMakeLists.txt: fixed error on finding LIB-DIR with a custom name.
1 parent d634672 commit 687e6fb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CMakeLists.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ ENDIF ()
2626
ST_SET_DEFAULT_BUILD_TYPE(Release)
2727

2828
IF (WIN32)
29+
FILE(GLOB libs_dir_ "${PROJECT_SOURCE_DIR}/../libs/*libs-build*")
30+
get_filename_component(libs_dir_name_ ${libs_dir_} NAME)
2931
FIND_PATH(
30-
LIB_DIR LIBS-BUILD/CMakeLists.txt
31-
HINTS "${PROJECT_SOURCE_DIR}/../libs"
32+
LIB_DIR ${libs_dir_name_}/CMakeLists.txt
33+
HINTS "${libs_dir_}/.."
3234
DOC "Libs directory"
3335
)
3436
IF (NOT LIB_DIR)

0 commit comments

Comments
 (0)