Skip to content

Commit f3be057

Browse files
committed
Drop LIBSCRATCHCPP_COMPUTED_GOTO option
1 parent 01efb99 commit f3be057

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

CMakeLists.txt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,14 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
88

99
option(LIBSCRATCHCPP_BUILD_UNIT_TESTS "Build unit tests" ON)
1010
option(LIBSCRATCHCPP_NETWORK_SUPPORT "Support for downloading projects" ON)
11-
option(LIBSCRATCHCPP_COMPUTED_GOTO "Support for computed goto" ON)
1211
option(LIBSCRATCHCPP_USE_LLVM "Compile scripts to LLVM IR (work in progress)" OFF)
1312
option(LIBSCRATCHCPP_PRINT_LLVM_IR "Print LLVM IR of compiled Scratch scripts (for debugging)" OFF)
1413

15-
if (NOT (CMAKE_CXX_COMPILER_ID STREQUAL "GNU"))
16-
# Computed goto not supported on anything except GCC
17-
set(LIBSCRATCHCPP_COMPUTED_GOTO OFF CACHE BOOL "" FORCE)
18-
endif()
19-
2014
add_library(scratchcpp SHARED)
2115
add_subdirectory(src)
2216
include_directories(src) # TODO: Remove this line
2317
include_directories(include)
2418

25-
if (LIBSCRATCHCPP_COMPUTED_GOTO)
26-
target_compile_definitions(scratchcpp PRIVATE ENABLE_COMPUTED_GOTO)
27-
endif()
28-
2919
target_sources(scratchcpp
3020
PUBLIC
3121
include/scratchcpp/global.h

0 commit comments

Comments
 (0)