-
Notifications
You must be signed in to change notification settings - Fork 793
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refs #11831. Remove unnecessary condition in cmake
Signed-off-by: Ricardo González <ricardo@richiware.dev>
- Loading branch information
Showing
37 changed files
with
2,758 additions
and
2,870 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
add_subdirectory(mutex_testing_tool) | ||
|
||
if(GTest_FOUND) | ||
set(USER_THREAD_NONBLOCKED_TEST UserThreadNonBlockedTest.cpp) | ||
set(USER_THREAD_NONBLOCKED_TEST UserThreadNonBlockedTest.cpp) | ||
|
||
add_executable(user_thread_nonblocked_test ${USER_THREAD_NONBLOCKED_TEST}) | ||
target_compile_definitions(DDSSimpleCommunicationSubscriber PRIVATE | ||
$<$<AND:$<NOT:$<BOOL:${WIN32}>>,$<STREQUAL:"${CMAKE_BUILD_TYPE}","Debug">>:__DEBUG> | ||
$<$<BOOL:${INTERNAL_DEBUG}>:__INTERNALDEBUG> # Internal debug activated. | ||
) | ||
target_link_libraries(user_thread_nonblocked_test mutex_testing_tool fastrtps fastcdr GTest::gtest) | ||
add_executable(user_thread_nonblocked_test ${USER_THREAD_NONBLOCKED_TEST}) | ||
target_compile_definitions(DDSSimpleCommunicationSubscriber PRIVATE | ||
$<$<AND:$<NOT:$<BOOL:${WIN32}>>,$<STREQUAL:"${CMAKE_BUILD_TYPE}","Debug">>:__DEBUG> | ||
$<$<BOOL:${INTERNAL_DEBUG}>:__INTERNALDEBUG> # Internal debug activated. | ||
) | ||
target_link_libraries(user_thread_nonblocked_test mutex_testing_tool fastrtps fastcdr GTest::gtest) | ||
|
||
STRING(REPLACE " " "\\ " MUTEX_PRELOAD_LIBRARY_FILE "$<TARGET_FILE:mutex_testing_tool_preload>") | ||
add_gtest(NAME UserThreadNonBlockedTest COMMAND user_thread_nonblocked_test SOURCES ${USER_THREAD_NONBLOCKED_TEST} | ||
ENVIRONMENTS | ||
"LD_LIBRARY_PATH=$<TARGET_FILE_DIR:mutex_testing_tool_preload>" | ||
"LD_PRELOAD=$<TARGET_FILE_NAME:mutex_testing_tool_preload>" | ||
LABELS "NoMemoryCheck" | ||
) | ||
endif() | ||
STRING(REPLACE " " "\\ " MUTEX_PRELOAD_LIBRARY_FILE "$<TARGET_FILE:mutex_testing_tool_preload>") | ||
add_gtest(NAME UserThreadNonBlockedTest COMMAND user_thread_nonblocked_test SOURCES ${USER_THREAD_NONBLOCKED_TEST} | ||
ENVIRONMENTS | ||
"LD_LIBRARY_PATH=$<TARGET_FILE_DIR:mutex_testing_tool_preload>" | ||
"LD_PRELOAD=$<TARGET_FILE_NAME:mutex_testing_tool_preload>" | ||
LABELS "NoMemoryCheck" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.