From: Dawid Jagiela Date: Sun, 13 May 2012 15:02:51 +0000 (+0200) Subject: linking pthreads for unres/src_MIN X-Git-Tag: v.3.2~115^2~13 X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?p=unres.git;a=commitdiff_plain;h=a1da60c51c6053818199a05696c4fcee6533f828 linking pthreads for unres/src_MIN --- diff --git a/CMakeLists.txt b/CMakeLists.txt index e01208a..c9c8b95 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 diff --git a/source/unres/src_MIN/CMakeLists.txt b/source/unres/src_MIN/CMakeLists.txt index ddb6896..668da3b 100644 --- a/source/unres/src_MIN/CMakeLists.txt +++ b/source/unres/src_MIN/CMakeLists.txt @@ -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 )