Skip to content

Commit

Permalink
Add conditional logic for including benchmarks.
Browse files Browse the repository at this point in the history
  • Loading branch information
tkremenek committed Nov 3, 2015
1 parent ae7667f commit 92830b6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ option(SWIFT_BUILD_STATIC_STDLIB
"Build static variants of the Swift standard library and SDK overlay"
FALSE)


option(SWIFT_INCLUDE_BENCHMARKS
"Create targets for running swift benchmarks"
TRUE)

option(SWIFT_INCLUDE_TESTS "Create targets for building/running tests." TRUE)

Expand Down Expand Up @@ -600,6 +602,9 @@ if(SWIFT_BUILD_TOOLS)
endif()
add_subdirectory(utils)
add_subdirectory(stdlib)
if(SWIFT_INCLUDE_BENCHMARKS)
add_subdirectory(benchmark)
endif()
if(SWIFT_INCLUDE_TESTS)
add_subdirectory(test)
add_subdirectory(unittests)
Expand Down Expand Up @@ -647,5 +652,3 @@ execute_process(COMMAND date "+%Y%m%d"

# CPack must be included *after* its configuration variables are set.
include(CPack)

add_subdirectory(benchmark)

0 comments on commit 92830b6

Please sign in to comment.