Navigation Menu

Skip to content

Commit

Permalink
cmake win32: add import libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
kenhys committed Oct 11, 2012
1 parent fd74c6b commit 1e55f26
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Expand Up @@ -110,7 +110,13 @@ if(WIN32)
COMPILE_DEFINITIONS "DBUG_OFF" "_CRT_SECURE_NO_WARNINGS")
endif()

target_link_libraries(ha_mroonga ${GROONGA_LIBRARIES})
if(WIN32)
set(MYSQL_IMPORT_LIBRARIES
"libmysqld${IMPORT_SUFFIX};mysqlserver${IMPORT_SUFFIX}")
target_link_libraries(ha_mroonga ${GROONGA_LIBRARIES} ${MYSQL_IMPORT_LIBRARIES})
else()
target_link_libraries(ha_mroonga ${GROONGA_LIBRARIES})
endif()

option(WITH_DEBUG "Enable debug options" OFF)
if(WITH_DEBUG)
Expand Down

0 comments on commit 1e55f26

Please sign in to comment.