Skip to content

Commit 4529961

Browse files
committed
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.
1 parent ded5bab commit 4529961

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ set(USE_LIBDISPATCH_INIT_CONSTRUCTOR ${ENABLE_DISPATCH_INIT_CONSTRUCTOR})
3131

3232
# TODO(compnerd) swift options
3333

34+
option(BUILD_SHARED_LIBS "build shared libraries" ON)
35+
36+
option(ENABLE_TESTING "build libdispatch tests" ON)
37+
3438
if(CMAKE_SYSTEM_NAME STREQUAL Linux OR
3539
CMAKE_SYSTEM_NAME STREQUAL Android)
3640
set(USE_GOLD_LINKER_DEFAULT ON)

0 commit comments

Comments
 (0)