File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.31 FATAL_ERROR)
33
44include (CMakePrintHelpers )
55
6- set (CMAKE_VERBOSE_MAKEFILE ON )
6+ # set(CMAKE_VERBOSE_MAKEFILE ON)
77
88if (UNIX AND NOT APPLE )
99 set (LINUX TRUE )
@@ -29,7 +29,7 @@ set(CMAKE_CXX_COMPILER "/usr/bin/clang++")
2929set (CMAKE_CXX_STANDARD 17)
3030
3131
32- add_library (bridge OBJECT ${BRIDGE_DIR} /lib/bridge.cpp )
32+ add_library (bridge OBJECT ${BRIDGE_DIR} /include/bridge.h ${BRIDGE_DIR} / lib/bridge.cpp )
3333
3434target_include_directories (
3535 bridge
@@ -62,13 +62,10 @@ set(BRIDGE_OBJECT_FILES $<TARGET_OBJECTS:bridge>)
6262# message(STATUS "Library path: ${bridge_o_path}")
6363
6464
65- add_executable (BridgeTest
66- ${BRIDGE_DIR} /lib/Bridge.chpl
67- ${BRIDGE_DIR} /include/Bridge.h
68- )
65+ add_executable (BridgeTest ${BRIDGE_DIR} /lib/Bridge.chpl )
6966target_link_options (BridgeTest
7067 PRIVATE
71- ${BRIDGE_DIR} /include/Bridge .h
68+ ${BRIDGE_DIR} /include/bridge .h
7269 ${BRIDGE_OBJECT_FILES}
7370 -L ${LIBTORCH_DIR} /lib
7471 "-ltorch"
You can’t perform that action at this time.
0 commit comments