aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/common/CMakeLists.txt
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2018-06-04 21:05:27 -0400
committerLibravatarUnit 193 <unit193@ubuntu.com>2018-06-04 21:05:27 -0400
commit4a8bfd06e73d7f051f0b39e19e57616c7bbb8ad1 (patch)
tree1a3981909d67b90e8042f9c615574af165f155b6 /src/lib/common/CMakeLists.txt
parent9b1b081cfdb1c0fb6457278775e0823f8bc10f62 (diff)
New upstream version 2.1.1+dfsgupstream/2.1.1+dfsg
Diffstat (limited to 'src/lib/common/CMakeLists.txt')
-rw-r--r--src/lib/common/CMakeLists.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/common/CMakeLists.txt b/src/lib/common/CMakeLists.txt
index 56d9fc9..b3791c1 100644
--- a/src/lib/common/CMakeLists.txt
+++ b/src/lib/common/CMakeLists.txt
@@ -17,8 +17,24 @@
file(GLOB headers "*.h")
file(GLOB sources "*.cpp")
+if (WIN32)
+ file(GLOB arch_headers "win32/*.h")
+ file(GLOB arch_sources "win32/*.cpp")
+elseif (UNIX)
+ file(GLOB arch_headers "unix/*.h")
+ file(GLOB arch_sources "unix/*.cpp")
+endif()
+
+list(APPEND headers ${arch_headers})
+list(APPEND sources ${arch_sources})
+
if (BARRIER_ADD_HEADERS)
list(APPEND sources ${headers})
endif()
add_library(common STATIC ${sources})
+
+if (HAVE_GETPWUID_R)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHAVE_GETPWUID_R=1")
+endif()
+