Allow disabling generator
This commit is contained in:
parent
f24390a00b
commit
683d87c366
|
@ -36,4 +36,7 @@ add_subdirectory(lib)
|
||||||
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/lib/cmake/modules" "${CMAKE_MODULE_PATH}")
|
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/lib/cmake/modules" "${CMAKE_MODULE_PATH}")
|
||||||
|
|
||||||
# add code generator
|
# add code generator
|
||||||
add_subdirectory(generator)
|
option(NO_GENERATOR "disables building the generator (useful for cross-compiling)" OFF)
|
||||||
|
if(NOT NO_GENERATOR)
|
||||||
|
add_subdirectory(generator)
|
||||||
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue