Merge release-4-5-patches into release-4-6
[alexxy/gromacs.git] / src / mdlib / CMakeLists.txt
index e50df463730959b3ce676f2b254e7193d9275fe8..50c249f1b33f10654509c5faa26ebae728a80e51 100644 (file)
@@ -4,6 +4,10 @@ file(GLOB MDLIB_SOURCES *.c)
 # Files        called xxx_test.c are test drivers with a main() function for 
 # module xxx.c, so they should not be included in the library
 
+if(NOT GMX_FFT_FFTPACK)
+list(REMOVE_ITEM MDLIB_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/fftpack.c)
+endif()
+
 add_library(md ${MDLIB_SOURCES})
 target_link_libraries(md gmx ${GMX_EXTRA_LIBRARIES} ${FFT_LIBRARIES} ${XML_LIBRARIES})
 set_target_properties(md PROPERTIES OUTPUT_NAME "md${GMX_LIBS_SUFFIX}" SOVERSION ${SOVERSION} INSTALL_NAME_DIR "${LIB_INSTALL_DIR}")