Skip to content

Commit df78e35

Browse files
committed
Remove error cmake file.
1 parent 9d0de35 commit df78e35

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.31 FATAL_ERROR)
33

44
include(CMakePrintHelpers)
55

6-
set(CMAKE_VERBOSE_MAKEFILE ON)
6+
# set(CMAKE_VERBOSE_MAKEFILE ON)
77

88
if(UNIX AND NOT APPLE)
99
set(LINUX TRUE)
@@ -29,7 +29,7 @@ set(CMAKE_CXX_COMPILER "/usr/bin/clang++")
2929
set(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

3434
target_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)
6966
target_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"

0 commit comments

Comments
 (0)