summaryrefslogtreecommitdiff
path: root/plugins/warp/CMakeLists.txt
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2024-10-25 10:30:01 -0400
committerMason Reed <mason@vector35.com>2024-10-25 10:30:05 -0400
commitf97c60b5f77c4b9b668ff0b5fd292b41521c72fd (patch)
tree73925f97b61356033e97f5100fb42173f3eb1dbe /plugins/warp/CMakeLists.txt
parent5229159a85c720743c9f792be2a40edb225ca957 (diff)
Prevent building test artifacts on cmake builds
For some reason the linker is looking in the target directory of external rust plugins?
Diffstat (limited to 'plugins/warp/CMakeLists.txt')
-rw-r--r--plugins/warp/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/warp/CMakeLists.txt b/plugins/warp/CMakeLists.txt
index acfbf41e..9a144270 100644
--- a/plugins/warp/CMakeLists.txt
+++ b/plugins/warp/CMakeLists.txt
@@ -33,7 +33,9 @@ if(FORCE_COLORED_OUTPUT)
set(CARGO_OPTS ${CARGO_OPTS} --color always)
endif()
-set(CARGO_FEATURES "")
+# NOTE: --no-default-features is set to disable building artifacts used for testing
+# NOTE: the linker is looking in the target dir and linking on it apparently.
+set(CARGO_FEATURES "--no-default-features")
set(OUTPUT_FILE_NAME ${CMAKE_SHARED_LIBRARY_PREFIX}${PROJECT_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX})
set(OUTPUT_PDB_NAME ${CMAKE_SHARED_LIBRARY_PREFIX}${PROJECT_NAME}.pdb)
set(OUTPUT_FILE_PATH ${BN_CORE_PLUGIN_DIR}/${CMAKE_SHARED_LIBRARY_PREFIX}${PROJECT_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX})