linking pthreads for unres/src_MIN
authorDawid Jagiela <lightnir@chem.univ.gda.pl>
Sun, 13 May 2012 15:02:51 +0000 (17:02 +0200)
committerDawid Jagiela <lightnir@chem.univ.gda.pl>
Sun, 13 May 2012 15:02:51 +0000 (17:02 +0200)
CMakeLists.txt
source/unres/src_MIN/CMakeLists.txt

index e01208a..c9c8b95 100644 (file)
@@ -117,7 +117,7 @@ endif(MPIF_FOUND)
 
 #======================================
 # Detect system architecture
-#
+#=======================================
 
 if( CMAKE_SIZEOF_VOID_P EQUAL 4 )
   set(architektura "32")
@@ -127,6 +127,14 @@ endif( CMAKE_SIZEOF_VOID_P EQUAL 4 )
 
 message("Detected ${architektura}-bit architecture")   
 
+#=======================================
+# Find other libraries
+#=======================================
+
+# used by unres/src_MIN
+find_package (Threads)
+
+
 
 #=======================================
 #  Create diractories for build targets
index ddb6896..668da3b 100644 (file)
@@ -173,9 +173,9 @@ set(UNRES_MIN_SRCS ${UNRES_MIN_SRC0} ${UNRES_MIN_SRC1} ${UNRES_MIN_SRC2} ${UNRES
 add_executable(UNRES_BIN-MIN ${UNRES_MIN_SRCS} )
 set_target_properties(UNRES_BIN-MIN PROPERTIES OUTPUT_NAME ${UNRES_BIN})
 
-if (Fortran_COMPILER_NAME STREQUAL "ifort")
-  target_link_libraries (UNRES_BIN-MIN ${CMAKE_THREAD_LIBS_INIT})
-endif (Fortran_COMPILER_NAME STREQUAL "ifort")
+#if (Fortran_COMPILER_NAME STREQUAL "ifort")
+target_link_libraries (UNRES_BIN-MIN ${CMAKE_THREAD_LIBS_INIT})
+#endif (Fortran_COMPILER_NAME STREQUAL "ifort")
 
 #set_property(TARGET ${UNRES_BIN} PROPERTY RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin/unres/MD )