diff --git a/CMakeLists.txt b/CMakeLists.txt index ac05e56b23..f3b34cc16f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,13 +40,6 @@ endif() #=============================================================================== if(dagmc) find_package(DAGMC REQUIRED) - add_library(dagmc-imported INTERFACE IMPORTED) - link_directories(${DAGMC_LIBRARY_DIRS}) - set_target_properties(dagmc-imported PROPERTIES - INTERFACE_LINK_LIBRARIES "${DAGMC_LIBRARIES}" - INTERFACE_INCLUDE_DIRECTORIES "${DAGMC_INCLUDE_DIRS}") -else() - set(DAGMC_FOUND false) endif() #=============================================================================== @@ -371,7 +364,7 @@ target_link_libraries(libopenmc ${ldflags} ${HDF5_LIBRARIES} ${HDF5_HL_LIBRARIES if(dagmc) target_compile_definitions(libopenmc PRIVATE DAGMC) - target_link_libraries(libopenmc dagmc-imported) + target_link_libraries(libopenmc dagmc-shared pyne_dagmc-shared uwuw-shared) endif() #===============================================================================