Skip to content
Snippets Groups Projects
Commit 7a2de256 authored by Christian Schmidbauer's avatar Christian Schmidbauer Committed by Brad King
Browse files

Tests: Fix CMakeOnly.find_library test logic for libx32 case

Teach `test_find_library_subst` how to convert `libx32` to `lib`
so that the test case actually covers what we intend it to.
parent d9bdcf34
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ endmacro() ...@@ -24,7 +24,7 @@ endmacro()
macro(test_find_library_subst expected) macro(test_find_library_subst expected)
get_filename_component(dir ${expected} PATH) get_filename_component(dir ${expected} PATH)
get_filename_component(name ${expected} NAME) get_filename_component(name ${expected} NAME)
string(REGEX REPLACE "lib/?[36X][24Y][Z]*" "lib" dir "${dir}") string(REGEX REPLACE "lib/?[36Xx][24Y3][Z2]*" "lib" dir "${dir}")
test_find_library(", searched as ${dir}" "${expected}" test_find_library(", searched as ${dir}" "${expected}"
NAMES ${name} NAMES ${name}
PATHS ${CMAKE_CURRENT_SOURCE_DIR}/${dir} PATHS ${CMAKE_CURRENT_SOURCE_DIR}/${dir}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment