From 4529961c5cf752b25d04b0f65984d73149ce84b9 Mon Sep 17 00:00:00 2001 From: David Grove Date: Fri, 30 Jun 2017 13:47:20 -0400 Subject: [PATCH] Set CMake defaults to match autoconf Linux behavior. There may be a more elegant way to do this, but we really want to build shared libraries by default on Linux and we want to build the test cases and be able to run them. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1593569bd..f6b078e25 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,6 +31,10 @@ set(USE_LIBDISPATCH_INIT_CONSTRUCTOR ${ENABLE_DISPATCH_INIT_CONSTRUCTOR}) # TODO(compnerd) swift options +option(BUILD_SHARED_LIBS "build shared libraries" ON) + +option(ENABLE_TESTING "build libdispatch tests" ON) + if(CMAKE_SYSTEM_NAME STREQUAL Linux OR CMAKE_SYSTEM_NAME STREQUAL Android) set(USE_GOLD_LINKER_DEFAULT ON)