Skip to content

Commit

Permalink
CMake add_custom_command when using OUTPUT does not have PRE_LINK key…
Browse files Browse the repository at this point in the history
…word (warning) (#671)

Signed-off-by: Julien Jomier <jjomier@nvidia.com>
  • Loading branch information
jjomier authored Jan 31, 2025
1 parent 3458a27 commit 79991a0
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion applications/colonoscopy_segmentation/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ if(BUILD_TESTING)

# Patch the current example to enable recording the rendering window
add_custom_command(OUTPUT colonoscopy_segmentation_test.py
PRE_LINK
COMMAND patch -u -o colonoscopy_segmentation_test.py ${CMAKE_CURRENT_SOURCE_DIR}/colonoscopy_segmentation.py
${CMAKE_SOURCE_DIR}/applications/colonoscopy_segmentation/testing/colonoscopy_segmentation.patch
COMMAND sed -i "s#RECORDING_DIR#${RECORDING_DIR}#g" colonoscopy_segmentation_test.py
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ if(BUILD_TESTING)

# Patch the current example to enable recording the rendering window
add_custom_command(OUTPUT multiai_endoscopy_test.cpp
PRE_LINK
COMMAND patch -u -o multiai_endoscopy_test.cpp ${CMAKE_CURRENT_SOURCE_DIR}/multi_ai.cpp
${CMAKE_SOURCE_DIR}/applications/multiai_endoscopy/testing/cpp_multiai_endoscopy.patch
COMMAND sed -i "s#RECORDING_DIR#${RECORDING_DIR}#g" multiai_endoscopy_test.cpp
Expand Down
1 change: 0 additions & 1 deletion applications/multiai_endoscopy/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ if(BUILD_TESTING)

# Patch the current example to enable recording the rendering window
add_custom_command(OUTPUT multi_ai_test.py
PRE_LINK
COMMAND patch -u -o multi_ai_test.py ${CMAKE_CURRENT_SOURCE_DIR}/multi_ai.py
${CMAKE_SOURCE_DIR}/applications/multiai_endoscopy/testing/python_multiai_endoscopy.patch
COMMAND sed -i "s#RECORDING_DIR#${RECORDING_DIR}#g" multi_ai_test.py
Expand Down
1 change: 0 additions & 1 deletion applications/ultrasound_segmentation/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ if(BUILD_TESTING)

# Patch the current example to enable recording the rendering window
add_custom_command(OUTPUT main_test.cpp
PRE_LINK
COMMAND patch -u -o main_test.cpp ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp
${CMAKE_SOURCE_DIR}/applications/ultrasound_segmentation/testing/cpp_ultrasound_segmentation.patch
COMMAND sed -i "s#RECORDING_DIR#${RECORDING_DIR}#g" main_test.cpp
Expand Down
1 change: 0 additions & 1 deletion applications/ultrasound_segmentation/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ if(BUILD_TESTING)

# Patch the current example to enable recording the rendering window
add_custom_command(OUTPUT ultrasound_segmentation_test.py
PRE_LINK
COMMAND patch -u -o ultrasound_segmentation_test.py ${CMAKE_CURRENT_SOURCE_DIR}/ultrasound_segmentation.py
${CMAKE_SOURCE_DIR}/applications/ultrasound_segmentation/testing/python_ultrasound_segmentation.patch
COMMAND sed -i "s#RECORDING_DIR#${RECORDING_DIR}#g" ultrasound_segmentation_test.py
Expand Down

0 comments on commit 79991a0

Please sign in to comment.