|
|
@@ -69,7 +69,9 @@ add_library ( lmanticore STATIC sphinx.cpp sphinxquery.cpp sphinxutils.cpp
|
|
|
aggrexpr.cpp joinsorter.cpp queuecreator.cpp exprgeodist.cpp exprremap.cpp exprdocstore.cpp schematransform.cpp
|
|
|
sortergroup.cpp sortertraits.cpp sorterprecalc.cpp querycontext.cpp skip_cache.cpp jsonsi.cpp sorterscroll.cpp )
|
|
|
|
|
|
-target_link_libraries ( lmanticore PRIVATE $<$<PLATFORM_ID:Windows>:dbghelp AdvAPI32 ShLwApi> )
|
|
|
+if (WIN32)
|
|
|
+target_link_libraries ( lmanticore PRIVATE dbghelp AdvAPI32 ShLwApi )
|
|
|
+endif()
|
|
|
|
|
|
add_library ( lstem STATIC sphinxsoundex.cpp sphinxmetaphone.cpp sphinxstemen.cpp sphinxstemru.cpp sphinxstemru.inl
|
|
|
sphinxstemcz.cpp sphinxstemar.cpp )
|
|
|
@@ -266,7 +268,9 @@ add_library ( digest_sha1 digest_sha1.cpp )
|
|
|
target_link_libraries ( digest_sha1 PRIVATE lextra )
|
|
|
target_link_libraries ( lsearchd PUBLIC digest_sha1 lextra nlohmann_json::nlohmann_json )
|
|
|
target_link_libraries ( lsearchd INTERFACE Boost::filesystem )
|
|
|
-target_link_libraries ( lsearchd PRIVATE $<$<PLATFORM_ID:Windows>:iphlpapi WS2_32 wsock32> )
|
|
|
+if (WIN32)
|
|
|
+target_link_libraries ( lsearchd PRIVATE iphlpapi WS2_32 wsock32 )
|
|
|
+endif()
|
|
|
|
|
|
function (stackmock processors compiler versions config values)
|
|
|
if (NOT CMAKE_SYSTEM_PROCESSOR IN_LIST processors)
|
|
|
@@ -444,7 +448,7 @@ if (WITH_MYSQL)
|
|
|
source_group ( "Testing config" FILES testrt.conf.in )
|
|
|
add_executable ( testrt testrt.cpp ${MANTICORE_BINARY_DIR}/config/rtestconfig.h )
|
|
|
target_compile_definitions ( testrt PRIVATE "DATAFLD=\"${DATAFLD}/\"" )
|
|
|
- target_link_libraries ( testrt PRIVATE source_mysql PUBLIC lmanticore $<$<PLATFORM_ID:Windows>:psapi.lib> )
|
|
|
+ target_link_libraries ( testrt PRIVATE source_mysql PUBLIC lmanticore $<$<PLATFORM_ID:Windows>:psapi> )
|
|
|
if (HAVE_RTESTCONFIG_H)
|
|
|
target_compile_definitions ( testrt PRIVATE "-DHAVE_RTESTCONFIG_H" )
|
|
|
endif ()
|