RA-Consulting-GmbH / openscenario.api.test

Apache License 2.0
38 stars 11 forks source link

OpenScenarioLib is not dependent from antlr #170

Closed ahege closed 1 year ago

ahege commented 1 year ago

Describe the bug In CMake file:

target_link_libraries( ${PROJECT_NAME} 
                PUBLIC ExpressionsLib}
                       )

To Reproduce It does not harm as long as the OSC-API project is not fetched directly from the repository. If so ${ANTLR4_RUNTIME_LIBRARIES} is not defined.

Expected behavior

if( ${BUILD_SHARED_LIBS} )
   set( ANTLR_STATIC_SHARED  antlr4_shared )
   message( STATUS "${PROJECT_NAME}: using Antlr shared" )
else()
   set( ANTLR_STATIC_SHARED  antlr4_static )
   message( STATUS "${PROJECT_NAME}: using Antlr static" )
endif()
target_link_libraries( ${PROJECT_NAME} 
                PUBLIC ExpressionsLib ${ANTLR_STATIC_SHARED}
                       )