Skip to content

Commit

Permalink
DTNN-653 Functional test cmake fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sara-gb committed Aug 6, 2024
1 parent 6a0e535 commit bb1fe73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,7 @@ endif()

get_target_property(IS_PIC bplib POSITION_INDEPENDENT_CODE)
if (IS_PIC)
foreach(COMPONENT ${BPLIB_COMPONENTS})
set_target_properties(${COMPONENT} PROPERTIES POSITION_INDEPENDENT_CODE ${IS_PIC})
endforeach()
set_target_properties(${BPLIB_COMPONENTS} PROPERTIES POSITION_INDEPENDENT_CODE ${IS_PIC})
endif()

# Set the standard compile options for all submodules (c99, full warnings)
Expand Down
5 changes: 3 additions & 2 deletions ut-functional/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ set(CMAKE_VERBOSE_MAKEFILE ON)
# Add executable
add_executable(functional-bplib_sanity-testrunner
sanity-test.c
$<TARGET_OBJECTS:bplib>
)

target_compile_features(functional-bplib_sanity-testrunner PUBLIC c_std_99)
Expand All @@ -22,9 +23,9 @@ target_include_directories(functional-bplib_sanity-testrunner PUBLIC
)

target_link_libraries(functional-bplib_sanity-testrunner PUBLIC
#bplib
ut_assert
bplib
# osal
osal
)

add_test(functional-bplib_sanity-testrunner functional-bplib_sanity-testrunner)
Expand Down

0 comments on commit bb1fe73

Please sign in to comment.