Fix build issues
This commit is contained in:
@@ -26,24 +26,24 @@ else()
|
||||
endif(STUD_UUID_STATIC)
|
||||
|
||||
if(WIN32)
|
||||
set(sources ${sources} libstud/uuid/uuid-windows.cxx)
|
||||
target_sources(stud-uuid PRIVATE libstud/uuid/uuid-windows.cxx)
|
||||
target_link_libraries(stud-uuid rpcrt4.lib)
|
||||
elseif(APPLE)
|
||||
set(sources ${sources} libstud/uuid/uuid-macos.cxx)
|
||||
target_sources(stud-uuid PRIVATE libstud/uuid/uuid-macos.cxx)
|
||||
target_link_libraries(stud-uuid "-framework CoreFoundation")
|
||||
elseif(LINUX)
|
||||
set(sources ${sources} libstud/uuid/uuid-linux.cxx)
|
||||
target_sources(stud-uuid PRIVATE libstud/uuid/uuid-linux.cxx)
|
||||
#target_link_libraries(stud-uuid ld)
|
||||
elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD" OR CMAKE_SYSTEM_NAME MATCHES "NetBSD")
|
||||
set(FREEBSD TRUE)
|
||||
set(BSD TRUE)
|
||||
set(sources ${sources} libstud/uuid/uuid-freebsd.cxx)
|
||||
target_sources(stud-uuid PRIVATE libstud/uuid/uuid-freebsd.cxx)
|
||||
elseif (CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
|
||||
set(OPENBSD TRUE)
|
||||
set(BSD TRUE)
|
||||
set(sources ${sources} libstud/uuid/uuid-openbsd.cxx)
|
||||
target_sources(stud-uuid PRIVATE libstud/uuid/uuid-openbsd.cxx)
|
||||
elseif (EMSCRIPTEN)
|
||||
set(sources ${sources} libstud/uuid/uuid-emscripten.cxx)
|
||||
target_sources(stud-uuid PRIVATE libstud/uuid/uuid-emscripten.cxx)
|
||||
else()
|
||||
message(FATAL_ERROR "Target platform is not supported.")
|
||||
endif()
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
#include <functional> // hash
|
||||
|
||||
#include <libstud/uuid/export.hxx>
|
||||
#include <libstud/uuid/version.hxx>
|
||||
|
||||
#ifdef _WIN32
|
||||
struct _GUID; // GUID and UUID.
|
||||
|
||||
Reference in New Issue
Block a user