Skip to content

Commit e889888

Browse files
committed
static sdai libs need include paths
1 parent ebdfab5 commit e889888

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

data/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ FUNCTION(BUILD_A_SCHEMA SCHEMA_FILE)
8383
add_dependencies( ${PROJECT_NAME} generate_cpp_${SCHEMA_SHORT_NAME} )
8484
set_target_properties( ${PROJECT_NAME} PROPERTIES COMPILE_FLAGS
8585
${${PROJECT_NAME}_COMPILE_FLAGS} )
86+
if( TARGET ${PROJECT_NAME}-static )
87+
set_target_properties( ${PROJECT_NAME}-static PROPERTIES COMPILE_FLAGS
88+
${${PROJECT_NAME}_COMPILE_FLAGS} )
89+
endif( TARGET ${PROJECT_NAME}-static )
8690

8791
if( SC_ENABLE_COVERAGE AND NOT SC_COVER_SCHEMAS )
8892
set( CMAKE_BUILD_TYPE ${PREV_BUILD_TYPE} )

0 commit comments

Comments
 (0)