Navigation Menu

Skip to content

Commit

Permalink
cmake win32: ignore incompatible runtime libraries explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
kenhys committed Oct 12, 2012
1 parent 79ca4a1 commit f8556da
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Expand Up @@ -118,6 +118,12 @@ if(WIN32)
endif()

if(WIN32)
# NOTE: ignore incompatible runtime libraries explicitly.
# http://msdn.microsoft.com/en-us/library/6wtdswk0%28v=vs.80%29.aspx
set_target_properties(ha_mroonga PROPERTIES
LINK_FLAGS_DEBUG "/NODEFAULTLIB:libcmt.lib /NODEFAULTLIB:msvcrtd.lib")
set_target_properties(ha_mroonga PROPERTIES
LINK_FLAGS_RELEASE "/NODEFAULTLIB:libcmtd.lib /NODEFAULTLIB:msvcrtd.lib")
set(MYSQL_IMPORT_LIBRARIES
"libmysqld${IMPORT_SUFFIX};mysqlserver${IMPORT_SUFFIX}")
target_link_libraries(ha_mroonga ${GROONGA_LIBRARIES} ${MYSQL_IMPORT_LIBRARIES})
Expand Down

0 comments on commit f8556da

Please sign in to comment.