extend error reporting for CodeGeneration

This commit is contained in:
Eyck Jentzsch 2021-08-14 13:36:37 +02:00
parent b453c43407
commit d2d2f6c583
1 changed files with 11 additions and 2 deletions

View File

@ -11,7 +11,13 @@ if(EXISTS ${ROOT_DIR}/coredsl/pom.xml AND NOT EXISTS ${GENERATOR_JAR})
execute_process( execute_process(
COMMAND mvn package COMMAND mvn package
WORKING_DIRECTORY ${ROOT_DIR}/coredsl WORKING_DIRECTORY ${ROOT_DIR}/coredsl
RESULT_VARIABLE return_code) OUTPUT_VARIABLE StdOut
ERROR_VARIABLE StdErr
RESULT_VARIABLE Status
ERROR_QUIET)
if(Status AND NOT Status EQUAL 0)
message(STATUS "mvn package call failed: ${Status}, ${StdOut}, ${StdErr}")
endif()
endif() endif()
set(JAVA_OPTS --add-modules ALL-SYSTEM --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED set(JAVA_OPTS --add-modules ALL-SYSTEM --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED
@ -97,5 +103,8 @@ else()
macro(gen_coredsl CORE_NAME INPUT_FILE BACKEND) macro(gen_coredsl CORE_NAME INPUT_FILE BACKEND)
add_custom_target(${CORE_NAME}_cpp) add_custom_target(${CORE_NAME}_cpp)
message(STATUS "Not adding generation steps for ${CORE_NAME}(${ENABLE_CODEGEN}, ${GENERATOR_JAR})") message(STATUS "Not adding generation steps for ${CORE_NAME}(${ENABLE_CODEGEN}, ${GENERATOR_JAR})")
if(NOT EXISTS ${GENERATOR_JAR})
message(STATUS "CoreDSL Generator ${GENERATOR_JAR} does not exists")
endif()
endmacro() endmacro()
endif() endif()