Skip to content

Commit 4bf478b

Browse files
committed
Remove the express-only option
1 parent 853aeb4 commit 4bf478b

3 files changed

Lines changed: 6 additions & 13 deletions

File tree

cmake/SC_Build_opts.cmake

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ OPTION_WITH_DEFAULT(SC_CPP_GENERATOR "Compile exp2cxx" ON)
2727
OPTION_WITH_DEFAULT(SC_MEMMGR_ENABLE_CHECKS "Enable sc_memmgr's memory leak detection" OFF)
2828
OPTION_WITH_DEFAULT(SC_TRACE_FPRINTF "Enable extra comments in generated code so the code's source in exp2cxx may be located" OFF)
2929

30-
option(SC_BUILD_EXPRESS_ONLY "Only build express parser." OFF)
31-
mark_as_advanced(SC_BUILD_EXPRESS_ONLY)
32-
3330
option(DEBUGGING_GENERATED_SOURCES "disable md5 verification of generated sources" OFF)
3431
mark_as_advanced(DEBUGGING_GENERATED_SOURCES)
3532

@@ -51,12 +48,10 @@ endif(SC_ENABLE_COVERAGE)
5148
#---------------------------------------------------------------------
5249
# Testing option
5350
OPTION_WITH_DEFAULT(SC_ENABLE_TESTING "Enable unittesting framework" OFF)
54-
if(SC_ENABLE_TESTING)
55-
if(NOT ${SC_BUILD_EXPRESS_ONLY} AND NOT DEFINED SC_BUILD_SCHEMAS)
56-
set(SC_BUILD_SCHEMAS "ALL") #test all schemas, unless otherwise specified
57-
endif()
51+
if(SC_ENABLE_TESTING AND NOT DEFINED SC_BUILD_SCHEMAS)
52+
set(SC_BUILD_SCHEMAS "ALL") #test all schemas, unless otherwise specified
5853
include(CTest)
59-
endif(SC_ENABLE_TESTING)
54+
endif()
6055

6156
#---------------------------------------------------------------------
6257
# Executable install option

data/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# .exp file inside, which it uses. otherwise, ${path} is assumed to
1111
# be an express file.
1212

13-
if(NOT ${SC_BUILD_EXPRESS_ONLY} AND NOT "${SC_BUILD_SCHEMAS}" STREQUAL "")
13+
if(NOT "${SC_BUILD_SCHEMAS}" STREQUAL "")
1414
include(${SC_CMAKE_DIR}/schema_scanner/schemaScanner.cmake)
1515
foreach(src ${SC_SDAI_ADDITIONAL_EXES_SRCS})
1616
get_filename_component(name ${src} NAME_WE)

test/CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@ foreach(UNITARY_SCHEMA ${UNITARY_SCHEMAS})
1313
endif( UNITARY_SCHEMA MATCHES "fail_.*" )
1414
endforeach(UNITARY_SCHEMA ${UNITARY_SCHEMAS})
1515

16-
if(NOT ${SC_BUILD_EXPRESS_ONLY})
17-
add_subdirectory(p21)
18-
add_subdirectory(cpp)
19-
endif()
16+
add_subdirectory(p21)
17+
add_subdirectory(cpp)
2018

2119
# Local Variables:
2220
# tab-width: 8

0 commit comments

Comments
 (0)