@@ -58,6 +58,7 @@ set(MAIN_HEADERS
5858 include /DebugManager.h
5959 include /Error.h
6060 include /Export.h
61+ include /Format.h
6162 include /Hooks.h
6263 include /LuaTools.h
6364 include /LuaWrapper.h
@@ -320,12 +321,12 @@ if(UNIX)
320321endif ()
321322
322323if (APPLE )
323- set (PROJECT_LIBS dl dfhack-md5 fmt ${DFHACK_TINYXML} )
324+ set (PROJECT_LIBS dl dfhack-md5 ${FMTLIB} ${DFHACK_TINYXML} )
324325elseif (UNIX )
325- set (PROJECT_LIBS rt dl dfhack-md5 fmt ${DFHACK_TINYXML} )
326+ set (PROJECT_LIBS rt dl dfhack-md5 ${FMTLIB} ${DFHACK_TINYXML} )
326327else (WIN32 )
327328 # FIXME: do we really need psapi?
328- set (PROJECT_LIBS psapi dbghelp dfhack-md5 fmt ${DFHACK_TINYXML} )
329+ set (PROJECT_LIBS psapi dbghelp dfhack-md5 ${FMTLIB} ${DFHACK_TINYXML} )
329330endif ()
330331
331332set (VERSION_SRCS DFHackVersion.cpp)
@@ -391,7 +392,7 @@ else()
391392 set_target_properties (dfhack PROPERTIES COMPILE_FLAGS "-include Export.h" )
392393 set_target_properties (dfhack-client PROPERTIES COMPILE_FLAGS "-include Export.h" )
393394 add_library (dfhooks_dfhack SHARED Hooks.cpp)
394- target_link_libraries (dfhooks_dfhack dfhack fmt )
395+ target_link_libraries (dfhooks_dfhack dfhack ${FMTLIB} )
395396endif ()
396397
397398# effectively disables debug builds...
@@ -420,7 +421,7 @@ endif()
420421target_link_libraries (dfhack protobuf-lite clsocket lua jsoncpp_static dfhack-version ${PROJECT_LIBS} )
421422set_target_properties (dfhack PROPERTIES INTERFACE_LINK_LIBRARIES "" )
422423
423- target_link_libraries (dfhack-client protobuf-lite clsocket jsoncpp_static fmt )
424+ target_link_libraries (dfhack-client protobuf-lite clsocket jsoncpp_static ${FMTLIB} )
424425if (WIN32 )
425426 target_link_libraries (dfhack-client dbghelp)
426427endif ()
0 commit comments