Skip to content

Commit 8e08f71

Browse files
committed
don't build schema scanner unless schemas are to be built
1 parent b320bfe commit 8e08f71

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

data/CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# To build one or more schemas, configure with
22
# 'cmake -DSC_BUILD_SCHEMAS="path/to/schema.exp;path/to/schema2.exp"
33

4+
if( NOT "${SC_BUILD_SCHEMAS}" STREQUAL "" )
45
include( ${SC_CMAKE_DIR}/schema_scanner/schemaScanner.cmake )
5-
6-
if( DEFINED SC_BUILD_SCHEMAS )
76
foreach( src ${SC_SDAI_ADDITIONAL_EXES_SRCS} )
87
get_filename_component( name ${src} NAME_WE )
98
message( STATUS "Additional SDAI executable: ${name}" )
@@ -17,4 +16,4 @@ if( DEFINED SC_BUILD_SCHEMAS )
1716
LOCATE_SCHEMA( ${FILE} abspath )
1817
SCHEMA_CMLIST( ${abspath} )
1918
endforeach()
20-
endif()
19+
endif( NOT "${SC_BUILD_SCHEMAS}" STREQUAL "" )

0 commit comments

Comments
 (0)