Skip to content

Commit 7a1e4d2

Browse files
committed
Avoid finding debug Vc lib in release mode
1 parent b5decac commit 7a1e4d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if (GDX_ENABLE_SIMD)
1+
if (GDX_ENABLE_SIMD)
22
# do no use the provided Vc cmake module
33
# it will just autodetect the host machine and enable everything that is supported
44
# this is not the behaviour we want
@@ -10,8 +10,8 @@ if (GDX_ENABLE_SIMD)
1010
HINTS ${Vc_ROOT_DIR}/include ${Vc_INCLUDEDIR}
1111
)
1212

13-
find_library(Vc_LIBRARY NAMES Vc HINTS ${Vc_ROOT_DIR}/lib)
14-
find_library(Vc_LIBRARY_DEBUG NAMES Vcd HINTS ${Vc_ROOT_DIR}/lib)
13+
find_library(Vc_LIBRARY NAMES Vc PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/lib" NO_DEFAULT_PATH)
14+
find_library(Vc_LIBRARY_DEBUG NAMES Vc PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug/lib" NO_DEFAULT_PATH)
1515

1616
find_package_handle_standard_args(Vc
1717
FOUND_VAR Vc_FOUND

0 commit comments

Comments
 (0)