diff --git a/modules/map/CMakeLists.txt b/modules/map/CMakeLists.txt index ff9a7fe8b0..0108ea5cec 100644 --- a/modules/map/CMakeLists.txt +++ b/modules/map/CMakeLists.txt @@ -33,7 +33,7 @@ endif() file(GLOB MAP_CLIB_SOURCES src/*.c src/*.cc src/*/*.c src/*/*.cc) file(GLOB MAP_C_HEADERS src/*.h src/*/*.h) -add_library(mapcpplib_obj OBJECT ${MAP_CLIB_SOURCES} src/MAP_Types.f90 src/MAP_Fortran_Types.f90) +add_library(mapcpplib_obj OBJECT ${MAP_CLIB_SOURCES}) target_include_directories(mapcpplib_obj PUBLIC $ @@ -52,7 +52,7 @@ set(MAP_F_SOURCES src/MAP_Fortran_Types.f90 ) -add_library(maplib_obj OBJECT src/map.f90) +add_library(maplib_obj OBJECT ${MAP_F_SOURCES}) target_link_libraries(maplib_obj mapcpplib_obj nwtclibs_obj) add_library(maplib $ $) diff --git a/modules/nwtc-library/CMakeLists.txt b/modules/nwtc-library/CMakeLists.txt index 3d11e20005..e0f2e241f8 100644 --- a/modules/nwtc-library/CMakeLists.txt +++ b/modules/nwtc-library/CMakeLists.txt @@ -127,7 +127,7 @@ if (USE_LOCAL_STATIC_LAPACK) endif() add_library(nwtclibs_obj OBJECT ${NWTCLIBS_SOURCES}) -target_link_libraries(nwtclibs_obj nwtcbaselib_obj ${LAPACK_LIBRARIES} ${CMAKE_DL_LIBS}) +target_link_libraries(nwtclibs_obj nwtcbaselib_obj nwtcsyslib_obj ${LAPACK_LIBRARIES} ${CMAKE_DL_LIBS}) if (USE_LOCAL_STATIC_LAPACK) add_dependencies(nwtclibs_obj lapack) endif()