Skip to content

Instantly share code, notes, and snippets.

@acgetchell
Created December 12, 2013 00:16
Show Gist options
  • Save acgetchell/7921053 to your computer and use it in GitHub Desktop.
Save acgetchell/7921053 to your computer and use it in GitHub Desktop.
CMAKE ExternalProject for Google Mock results results from @Fraser999 's example
─[getchell][Hapkido][~]
└─▪ cd test
┌─[getchell][Hapkido][~/test]
└─▪ ls
CMakeLists.txt build
┌─[getchell][Hapkido][~/test]
└─▪ ll
total 32
drwxr-xr-x 5 getchell AESDEAN\Domain Users 170 Dec 11 13:26 .
drwxr-xr-x+ 122 getchell AESDEAN\Domain Users 4148 Dec 11 16:02 ..
-rw-r--r--@ 1 getchell AESDEAN\Domain Users 6148 Dec 11 13:10 .DS_Store
-rw-r--r--@ 1 getchell AESDEAN\Domain Users 5580 Dec 11 13:26 CMakeLists.txt
drwxr-xr-x 2 getchell AESDEAN\Domain Users 68 Dec 11 13:29 build
┌─[getchell][Hapkido][~/test]
└─▪ cd build
┌─[getchell][Hapkido][~/test/build]
└─▪ cmake ..
-- The C compiler identification is Clang 5.0.0
-- The CXX compiler identification is Clang 5.0.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found Subversion: /usr/bin/svn (found version "1.7.10")
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/getchell/test/build
┌─[getchell][Hapkido][~/test/build]
└─▪ make
Scanning dependencies of target googlemock
[ 11%] Creating directories for 'googlemock'
[ 22%] Performing download step (SVN checkout) for 'googlemock'
-- googlemock download command succeeded. See also /Users/getchell/test/build/ThirdParty/src/googlemock-stamp/googlemock-download-*.log
[ 33%] Performing patch step for 'googlemock'
[ 44%] Performing update step (SVN update) for 'googlemock'
Updating '.':
Fetching external item into 'gtest':
External at revision 671.
At revision 464.
[ 55%] Performing configure step for 'googlemock'
-- googlemock configure command succeeded. See also /Users/getchell/test/build/ThirdParty/src/googlemock-stamp/googlemock-configure-*.log
[ 66%] Performing build step for 'googlemock'
-- googlemock build command succeeded. See also /Users/getchell/test/build/ThirdParty/src/googlemock-stamp/googlemock-build-*.log
[ 77%] No install step for 'googlemock'
[ 88%] Completed 'googlemock'
[ 88%] Built target googlemock
Scanning dependencies of target MainTest
[100%] Building CXX object CMakeFiles/MainTest.dir/src/main.cpp.o
make[2]: *** No rule to make target `ThirdParty/src/googlemock-build/ReleaseLibs/libgmock.dylib', needed by `MainTest'. Stop.
make[1]: *** [CMakeFiles/MainTest.dir/all] Error 2
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment