Commit e229c048255dfea78429cff6f5cc911987f5f8e5

Vicent Marti 2013-01-02T21:25:32

Fuck you CMake

diff --git a/.travis.yml b/.travis.yml
index e4e5a0b..507248a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -26,8 +26,8 @@ script:
  - mkdir _build
  - cd _build
  - cmake .. -DCMAKE_INSTALL_PREFIX=../_install $OPTIONS
- - cmake --build . --target submodules install
- - ctest -V .
+ - make submodules all
+ - ./libgit2_clar
 
 # Run Tests
 after_script:
diff --git a/CMakeLists.txt b/CMakeLists.txt
index dbb11d2..43b405d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -235,6 +235,7 @@ INSTALL(FILES include/git2.h DESTINATION ${INCLUDE_INSTALL_DIR} )
 ADD_CUSTOM_TARGET(
 	submodules
 	COMMAND git submodule update --init tests-clar/clar
+	WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
 )
 
 # Tests