This commit is contained in:
Ward Fisher 2012-10-09 20:56:27 +00:00
parent d450b9716d
commit 448a95d74d
2 changed files with 6 additions and 6 deletions

View File

@ -498,8 +498,13 @@ ENDIF()
add_subdirectory(liblib)
#MESSAGE(STATUS "Linking with: ${ALL_TLL_LIBS}")
# Enable Utilities.
# For tests and utilities, we are no longer
# exporting symbols but rather importing them.
IF(BUILD_DLL)
REMOVE_DEFINITIONS(-DDLL_EXPORT)
ENDIF()
# Enable Utilities.
IF (BUILD_UTILITIES)
INCLUDE_DIRECTORIES(ncdump)
ADD_SUBDIRECTORY(ncgen)

View File

@ -3,11 +3,6 @@ SET(CMAKE_INCLUDE_CURRENT_DIR ON)
INCLUDE_DIRECTORIES(".")
IF(ENABLE_DLL)
ADD_DEFINITIONS(-DDLL_NETCDF)
REMOVE_DEFINITIONS(-DDLL_EXPORT)
ENDIF()
SET(nctest_SRC add.c atttests.c cdftests.c dimtests.c driver.c emalloc.c error.c misctest.c rec.c slabs.c val.c vardef.c varget.c vargetg.c varput.c varputg.c vartests.c vputget.c vputgetg.c)
FILE(GLOB COPY_FILES ${CMAKE_CURRENT_SOURCE_DIR}/*.nc)