diff --git a/CMakeLists.txt b/CMakeLists.txt index 4689df0543ea7c52a2f7ab90850b07af8eacf71e..ec540aa280c7776002921f2c5d945ecae88a71a6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -859,6 +859,10 @@ set_target_properties(shared PROPERTIES OUTPUT_NAME Gmsh) if(HAVE_LAPACK AND LAPACK_FLAGS) set_target_properties(shared PROPERTIES LINK_FLAGS ${LAPACK_FLAGS}) endif(HAVE_LAPACK AND LAPACK_FLAGS) +IF(MSVC AND ENABLE_MSVC_STATIC_RUNTIME) +message("WARNING: By enabling ENABLE_MSVC_STATIC_RUNTIME, shared library wont link." +"Change in msvc /MT flag to /MD in the shared project properties") +ENDIF(MSVC AND ENABLE_MSVC_STATIC_RUNTIME) target_link_libraries(shared ${LINK_LIBRARIES}) # binary targets