From f97c60b5f77c4b9b668ff0b5fd292b41521c72fd Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Fri, 25 Oct 2024 10:30:01 -0400 Subject: Prevent building test artifacts on cmake builds For some reason the linker is looking in the target directory of external rust plugins? --- plugins/warp/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/warp/CMakeLists.txt') 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}) -- cgit v1.3.1