Skip to content

Commit b2a8343

Browse files
committed
fix cmake error encountered when testing is enabled and all schemas disabled
1 parent ee32a0f commit b2a8343

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/p21/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
22
#test part 21 files
33

4+
#necessary macros won't already be defined if SC_BUILD_SCHEMAS is set to ""
5+
if(NOT COMMAND SCHEMA_CMLIST)
6+
include(${SC_CMAKE_DIR}/schema_scanner/schemaScanner.cmake)
7+
endif(NOT COMMAND SCHEMA_CMLIST)
8+
49
#used to create a number of small files at test-time. you probably don't want to modify.
510
set(P21_FILE_HEAD "
611
ISO-10303-21;

0 commit comments

Comments
 (0)