Skip to content
Snippets Groups Projects
Commit 1e995b79 authored by Laurent Van Migroet's avatar Laurent Van Migroet
Browse files

Added warning in cmake in case of enable_msvc_static_runtime ON that shared library won't link

parent 30bf90eb
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment