snikulov / google-test-examples

Short example how to use Google Test with CMake project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Broken

lambdabaa opened this issue · comments

[100%] Building CXX object CMakeFiles/google-test-examples_test.dir/test/cpp_sorter_test.cpp.o
make[2]: *** No rule to make target ext/gtest/src/googletest-build/ReleaseLibs/libgtest.dylib', needed bygoogle-test-examples_test'. Stop.
make[1]: *** [CMakeFiles/google-test-examples_test.dir/all] Error 2
make: *** [all] Error 2

:(

OS? Full log?
I suspect something was broken before this result - perhaps it was issue with building google test framework itself.

looks like some issues on Mac OSX.
since I don't have this HW/OS and issue originator does not respond I will close this issue.

I encountered the same issue.
OS: 10.7.4
Full log: could you tell me how I can get it? thanks.

could you please copy-paste from console where you invoking cmake then make?

➜  build  cmake ..
-- Configuring done
-- Generating done
-- Build files have been written to: /Volumes/Docs/Downloads/google-test-examples-master/build
➜  build  reset
➜  build  cmake ..
-- Configuring done
-- Generating done
-- Build files have been written to: /Volumes/Docs/Downloads/google-test-examples-master/build
➜  build  make
[ 11%] Performing update step (SVN update) for 'googletest'
At revision 654.
[ 22%] Performing configure step for 'googletest'
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG
    CMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE
    gtest_force_shared_crt


-- Build files have been written to: /Volumes/Docs/Downloads/google-test-examples-master/build/ext/gtest/src/googletest-build
[ 33%] Performing build step for 'googletest'
[ 50%] Built target gtest
[100%] Built target gtest_main
[ 44%] No install step for 'googletest'
[ 55%] Completed 'googletest'
[ 88%] Built target googletest
make[2]: *** No rule to make target `ext/gtest/src/googletest-build/ReleaseLibs/libgtest.dylib', needed by `google-test-examples_test'.  Stop.
make[1]: *** [CMakeFiles/google-test-examples_test.dir/all] Error 2
make: *** [all] Error 2

hm... interesting
have you tried build google test itself on mac osx?
i just wondering if libgtest.dylib produced in this case or not?

I just run cmake and make. nothing else has been done.
dylib not produced. but libgtest.a and libgtest_main.a have been produced.

unfortunately, without apple hw/sw I'm unable to help with mac osx issues, sorry.
but I accept any pull request with fix from you if it not break windows/linux builds :)