Skip to content

Commit 7d889c7

Browse files
committed
Fix many cmake build configs. Not all working yet.
1 parent 2b9368f commit 7d889c7

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,8 @@ add_dependencies(TinyLayerTest ChAI)
228228
target_link_options(TinyLayerTest
229229
PRIVATE
230230
--main-module layer_test.chpl
231-
-M ${PROJECT_ROOT_DIR}/lib
232-
${BRIDGE_DIR}/include/bridge.h
233-
${BRIDGE_OBJECT_FILES}
234-
-L ${LIBTORCH_DIR}/lib
235-
${LIBTORCH_LIBS_LINKER_ARGS}
236-
--ldflags "-Wl,-rpath,${LIBTORCH_DIR}/lib"
231+
# -M ${PROJECT_ROOT_DIR}/lib
232+
${CHAI_LINKER_ARGS}
237233
)
238234
# chpl test/tiny/layer_test.chpl -M lib bridge/include/bridge.h build/CMakeFiles/bridge.dir/bridge/lib/bridge.cpp.o -L libtorch/lib -ltorch -ltorch_cpu -lc10 -ltorch_global_deps --ldflags "-Wl,-rpath,libtorch/lib"
239235

0 commit comments

Comments
 (0)