diff --git a/CMakeLists.txt b/CMakeLists.txt
index 22624db..d17ffad 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -238,7 +238,8 @@ if (BUILD_TESTING)
# ${BINARY_DIR}/libgmock.a works everywhere except xcode...
# so ugly weird hack generating warnings about unknown dir for now:
target_link_libraries(wdt4tests
- "-L ${BINARY_DIR} -L ${BINARY_DIR}/Debug -lgmock"
+ # "-L ${BINARY_DIR} -L ${BINARY_DIR}/Debug -lgmock"
+ "-L ${BINARY_DIR} -lgmock"
wdtlib
)
ld /Users/ldemailly/github/ldemailly/xcode/Debug/libwdt4tests.dylib normal x86_64
cd /Users/ldemailly/github/ldemailly/wdt
export MACOSX_DEPLOYMENT_TARGET=10.10
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -L/Users/ldemailly/github/ldemailly/xcode/Debug -F/Users/ldemailly/github/ldemailly/xcode/Debug -filelist /Users/ldemailly/github/ldemailly/xcode/WDT.build/Debug/wdt4tests.build/Objects-normal/x86_64/wdt4tests.LinkFileList -install_name @rpath/libwdt4tests.dylib -Xlinker -rpath -Xlinker /Users/ldemailly/github/ldemailly/xcode/Debug -mmacosx-version-min=10.10 -dynamiclib -Wl,-headerpad_max_install_names -L /Users/ldemailly/github/ldemailly/xcode/gmock/src/gmock-build -lgmock /Users/ldemailly/github/ldemailly/xcode/Debug/libwdtlib.dylib /Users/ldemailly/github/ldemailly/xcode/Debug/libwdtlib_min.dylib /Users/ldemailly/github/ldemailly/xcode/Debug/libfolly4wdt.dylib /usr/local/lib/libglog.dylib /usr/local/lib/libgflags.dylib /usr/local/lib/libboost_system-mt.dylib -single_module -Xlinker -dependency_info -Xlinker /Users/ldemailly/github/ldemailly/xcode/WDT.build/Debug/wdt4tests.build/Objects-normal/x86_64/wdt4tests_dependency_info.dat -o /Users/ldemailly/github/ldemailly/xcode/Debug/libwdt4tests.dylib
ld: library not found for -lgmock
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: warning: directory not found for option '-L/Users/ldemailly/github/ldemailly/build/gmock/src/gmock-build/Debug'