Skip to content

Commit c23b327

Browse files
committed
Fixed c++lib CMakeLists.txt bug
1 parent eac0615 commit c23b327

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

c++lib/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,9 @@ add_library(cadabra2++_static STATIC $<TARGET_OBJECTS:cadabra2++objects>)
303303
target_link_libraries(cadabra2++_static ${PCRE_LIBRARIES} ${GMPXX_LIB} ${GMP_LIB})
304304

305305
# Sample executable
306-
add_executable("${TESTNAME}" "tests/${TESTNAME}.cc")
307-
target_include_directories("${TESTNAME}" PUBLIC "${CMAKE_BINARY_DIR}/include" "${CMAKE_BINARY_DIR}/include/cadabra2++")
308-
target_link_libraries("${TESTNAME}" cadabra2++)
306+
add_executable(simple simple.cc)
307+
target_include_directories(simple PUBLIC "${CMAKE_BINARY_DIR}/include" "${CMAKE_BINARY_DIR}/include/cadabra2++")
308+
target_link_libraries(simple cadabra2++)
309309

310310

311311
#---------------------------------------------------------------------------

0 commit comments

Comments
 (0)