Skip to content

Commit a4d1e03

Browse files
committed
ensure when SC_BUILD_EXPRESS_ONLY is set that we do not build the schema scanner
1 parent 573c3ec commit a4d1e03

4 files changed

Lines changed: 11 additions & 7 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ project(SC)
4242

4343
# SC version
4444
set(SC_VERSION_MAJOR 0)
45-
set(SC_VERSION_MINOR 7-dev)
45+
set(SC_VERSION_MINOR 8-dev)
4646
set(SC_VERSION ${SC_VERSION_MAJOR}.${SC_VERSION_MINOR})
4747

4848
# SC ABI version. SC_ABI_SOVERSION should be incremented

cmake/SC_Build_opts.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ OPTION_WITH_DEFAULT(SC_GIT_VERSION "Build using version from git" ON)
6060
option(SC_BUILD_EXPRESS_ONLY "Only build express parser." OFF)
6161
mark_as_advanced(SC_BUILD_EXPRESS_ONLY)
6262

63+
option(DEBUGGING_GENERATED_SOURCES "disable md5 verification of generated sources" OFF)
64+
mark_as_advanced(DEBUGGING_GENERATED_SOURCES)
65+
6366
#---------------------------------------------------------------------
6467
# Coverage option
6568
OPTION_WITH_DEFAULT(SC_ENABLE_COVERAGE "Enable code coverage test" OFF)
@@ -79,11 +82,10 @@ endif(SC_ENABLE_COVERAGE)
7982
# Testing option
8083
OPTION_WITH_DEFAULT(SC_ENABLE_TESTING "Enable unittesting framework" OFF)
8184
if(SC_ENABLE_TESTING)
82-
if(NOT DEFINED SC_BUILD_SCHEMAS)
85+
if(NOT ${SC_BUILD_EXPRESS_ONLY} AND NOT DEFINED SC_BUILD_SCHEMAS)
8386
set(SC_BUILD_SCHEMAS "ALL") #test all schemas, unless otherwise specified
8487
endif()
8588
include(CTest)
86-
ENABLE_TESTING()
8789
endif(SC_ENABLE_TESTING)
8890

8991
#---------------------------------------------------------------------

data/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
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_SCHEMAS}" STREQUAL "")
13+
if(NOT ${SC_BUILD_EXPRESS_ONLY} AND 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)
@@ -25,7 +25,7 @@ if(NOT "${SC_BUILD_SCHEMAS}" STREQUAL "")
2525
LOCATE_SCHEMA(${FILE} abspath)
2626
SCHEMA_CMLIST(${abspath})
2727
endforeach()
28-
endif(NOT "${SC_BUILD_SCHEMAS}" STREQUAL "")
28+
endif()
2929

3030
# Local Variables:
3131
# tab-width: 8

test/CMakeLists.txt

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

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

1921
# Local Variables:
2022
# tab-width: 8

0 commit comments

Comments
 (0)