summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMiha Ravšelj <miha.ravselj@gmail.com>2014-03-03 14:59:50 +0100
committerMiha Ravšelj <miha.ravselj@gmail.com>2014-03-03 14:59:50 +0100
commitb43f35fde2fa977870280d685b6e96418b82752e (patch)
treebbe805618022c062f7c311f8bc8cd09d239abc7d /examples
parent6874cafd84b70f6f83fdcf81e55f87c8d62bb07e (diff)
downloadlibgit2-b43f35fde2fa977870280d685b6e96418b82752e.tar.gz
- examples CMakeLists.txt reverted to previous state
Diffstat (limited to 'examples')
-rw-r--r--examples/CMakeLists.txt6
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index d3908e0ff..596be45ed 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -6,14 +6,10 @@ ELSE()
TARGET_LINK_LIBRARIES(cgit2 git2 pthread)
ENDIF()
-OPTION( BUILD_EXAMPLES_GENERAL "Build general example" OFF )
-
FILE(GLOB SRC_EXAMPLE_APPS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.c)
FOREACH(src_app ${SRC_EXAMPLE_APPS})
STRING(REPLACE ".c" "" app_name ${src_app})
- IF(${app_name} STREQUAL "general" AND BUILD_EXAMPLES_GENERAL OR
- NOT ${app_name} STREQUAL "general" AND NOT ${app_name} STREQUAL "common"
- )
+ IF(NOT ${app_name} STREQUAL "common")
ADD_EXECUTABLE(${app_name} ${src_app} "common.c")
TARGET_LINK_LIBRARIES(${app_name} git2)
ENDIF()