mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-30 16:10:44 +08:00
Correct a cmake linking error discovered when working in a mips qemu environment.
This commit is contained in:
parent
8f2be58d95
commit
fb062f4406
@ -18,8 +18,13 @@ IF(ENABLE_BYTERANGE)
|
||||
ENDIF(ENABLE_BYTERANGE)
|
||||
|
||||
add_library(dispatch OBJECT ${libdispatch_SOURCES})
|
||||
target_include_directories(dispatch PUBLIC ${MPI_C_INCLUDE_PATH})
|
||||
target_link_libraries(dispatch PUBLIC ${MPI_C_LIBRARIES})
|
||||
IF(MPI_C_INCLUDE_PATH)
|
||||
target_include_directories(dispatch PUBLIC ${MPI_C_INCLUDE_PATH})
|
||||
ENDIF(MPI_C_INCLUDE_PATH)
|
||||
|
||||
IF(MPI_C_LIBRARIES)
|
||||
target_link_libraries(dispatch PUBLIC ${MPI_C_LIBRARIES})
|
||||
ENDIF(MPI_C_LIBRARIES)
|
||||
|
||||
FILE(GLOB CUR_EXTRA_DIST RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/*.h ${CMAKE_CURRENT_SOURCE_DIR}/*.c)
|
||||
SET(CUR_EXTRA_DIST ${CUR_EXTRA_DIST} CMakeLists.txt Makefile.am)
|
||||
|
Loading…
Reference in New Issue
Block a user