Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
5c2d3f6d
Commit
5c2d3f6d
authored
Jan 02, 2013
by
Vicent Marti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add build dependency for clar. Also, fuck you CMake. Fuck you.
parent
b0a45829
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
CMakeLists.txt
+9
-3
tests-clar/clar
+1
-1
No files found.
CMakeLists.txt
View file @
5c2d3f6d
...
...
@@ -242,17 +242,23 @@ IF (BUILD_CLAR)
ADD_DEFINITIONS(-DCLAR_RESOURCES=
\"
${
TEST_RESOURCES
}
\"
)
INCLUDE_DIRECTORIES(
${
CLAR_PATH
}
)
FILE(GLOB_RECURSE SRC_TEST
${
CLAR_PATH
}
/*/*.c
${
CLAR_PATH
}
/clar_helpers.c)
FILE(GLOB_RECURSE SRC_TEST
${
CLAR_PATH
}
/*/*.c)
SET(SRC_CLAR "
${
CLAR_PATH
}
/main.c
" "
${
CLAR_PATH
}
/clar_helpers.c
")
SET(CMAKE_C_FLAGS "
${
CMAKE_C_FLAGS
}
-Wno-missing-prototypes
")
ADD_CUSTOM_COMMAND(
OUTPUT
${
CLAR_PATH
}
/clar.suite
COMMAND
${
PYTHON_EXECUTABLE
}
clar/generate.py .
DEPENDS
${
CLAR_PATH
}
/clar.suite
${
SRC_TEST
}
DEPENDS
${
SRC_TEST
}
WORKING_DIRECTORY
${
CLAR_PATH
}
)
ADD_EXECUTABLE(libgit2_clar
${
SRC_GIT2
}
${
SRC_OS
}
${
CLAR_PATH
}
/main.c
${
SRC_TEST
}
${
SRC_ZLIB
}
${
SRC_HTTP
}
${
SRC_REGEX
}
${
SRC_SHA1
}
)
SET_SOURCE_FILES_PROPERTIES(
${
CLAR_PATH
}
/clar/clar.c
PROPERTIES OBJECT_DEPENDS
${
CLAR_PATH
}
/clar.suite)
ADD_EXECUTABLE(libgit2_clar
${
SRC_GIT2
}
${
SRC_OS
}
${
SRC_CLAR
}
${
SRC_TEST
}
${
SRC_ZLIB
}
${
SRC_HTTP
}
${
SRC_REGEX
}
${
SRC_SHA1
}
)
TARGET_LINK_LIBRARIES(libgit2_clar
${
SSL_LIBRARIES
}
)
TARGET_OS_LIBRARIES(libgit2_clar)
MSVC_SPLIT_SOURCES(libgit2_clar)
...
...
clar
@
fe7d9740
Subproject commit
1febaef178ccc12d3bdc4568a23f089b520a987b
Subproject commit
fe7d9740becabac0e856eb0cdc19bc7e48680ba5
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment