Skip to content

Commit

Permalink
cmake: make tools executables optional
Browse files Browse the repository at this point in the history
  • Loading branch information
jesec authored and renau committed Oct 9, 2021
1 parent 5113ee9 commit 8ec0195
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ option(SLANG_COVERAGE "Enable code coverage" OFF)
option(CI_BUILD "Enable longer running tests for CI builds" OFF)
option(FUZZ_TARGET "Enables changes to make binaries easier to fuzz test" OFF)
option(SLANG_INCLUDE_TESTS "Include test targets in the build" ON)
option(SLANG_INCLUDE_TOOLS "Include tools in the build" ON)
option(SLANG_INCLUDE_DOCS "Include documentation targets in the build" OFF)
option(SLANG_INCLUDE_LLVM "Include LLVM in the build for code generation" OFF)
option(STATIC_BUILD "Make the linked binaries static" OFF)
Expand Down Expand Up @@ -199,7 +200,10 @@ if(CMAKE_GENERATOR MATCHES "Visual Studio")
endif()

add_subdirectory(source)
add_subdirectory(tools)

if (SLANG_INCLUDE_TOOLS)
add_subdirectory(tools)
endif()

if(SLANG_INCLUDE_TESTS)
include(CTest)
Expand Down

0 comments on commit 8ec0195

Please sign in to comment.