#508 breaks cmake #515

Closed
opened 2021-10-26 17:06:23 +02:00 by mohr · 1 comment
Owner

CMake Error at tests/src/fsfw_tests/integration/task/CMakeLists.txt:1 (target_sources):
Cannot specify sources for target "PRIVATE" which is not built by this
project.

CMake Error at tests/src/fsfw_tests/integration/task/CMakeLists.txt:1 (target_sources): Cannot specify sources for target "PRIVATE" which is not built by this project.
mohr added the
build
label 2021-10-26 17:06:23 +02:00
muellerr was assigned by mohr 2021-10-26 17:06:23 +02:00
Owner

I'm currently working on unit tests, got the same error after merging upstream.

Solved by doing this in the CMakeLists file

if(FSFW_ADD_INTERNAL_TESTS)
    add_subdirectory(internal)
endif()

if(FSFW_BUILD_UNITTESTS)
    add_subdirectory(unit)
else()
    add_subdirectory(integration)
endif()

I'm currently working on unit tests, got the same error after merging upstream. Solved by doing this in the CMakeLists file ```cmake if(FSFW_ADD_INTERNAL_TESTS) add_subdirectory(internal) endif() if(FSFW_BUILD_UNITTESTS) add_subdirectory(unit) else() add_subdirectory(integration) endif() ```
mohr closed this issue 2021-10-26 17:36:41 +02:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: fsfw/fsfw#515
No description provided.