Skip to content

Commit 897f679

Browse files
author
Dominic Price
committed
build C++ cdb libraries in correct binary output directory
1 parent 235d1ba commit 897f679

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/packages/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ foreach(PACKAGE ${COMPILED_PACKAGES})
5757
get_filename_component(PINSTALL ${PACKAGE} DIRECTORY)
5858
get_filename_component(PNAME ${PACKAGE} NAME_WE)
5959
pybind11_add_module(${PNAME} SHARED ${SOURCE_PACKAGEDIR}/${PACKAGE})
60+
set_target_properties(${PNAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/cdb/${PINSTALL}")
6061
target_link_libraries(${PNAME} PUBLIC cadabra2 ${GMPXX_LIBRARIES})
6162
target_include_directories(${PNAME} PUBLIC ${CADABRA_CORE_DIR})
6263
install(TARGETS ${PNAME} DESTINATION ${PYTHON_CDB_PACKAGE_PATH}/${PINSTALL})

0 commit comments

Comments
 (0)