From 02abde090f62727dfdbff265560e124ee30e1166 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Sun, 2 Mar 2014 12:07:16 +0900 Subject: [PATCH] execute submodule update before doing anything --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2c4dfd86..44d8a65e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,12 @@ cmake_minimum_required(VERSION 2.8) project(picrin) +# git submodule update --init +execute_process( + COMMAND ${GIT_EXECUTABLE} submodule update --init + WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} + ) + set(CMAKE_RUNTIME_OUTPUT_DIRECTORY bin) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY lib) set(CMAKE_C_FLAGS "-std=c99") @@ -11,7 +17,6 @@ add_library(xfile SHARED extlib/xfile/xfile.c) # build picrin include_directories(include extlib) -link_directories(${PROJECT_SOURCE_DIR}/lib) include(src/CMakeLists.txt) include(tools/CMakeLists.txt)