Skip to content

Commit ae3780d

Browse files
committed
[Olympus] Switch back to custom mutex/condition
1 parent b8d10ad commit ae3780d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

libs/utils/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ set(DIST_HDRS
4343
)
4444

4545
# Use our custom mutex/condition only on ANDROID
46-
set(DIST_ANDROID_HDRS
46+
set(DIST_LINUX_HDRS
4747
${PUBLIC_HDR_DIR}/${TARGET_LINUX}/Mutex.h
4848
)
4949

@@ -140,8 +140,8 @@ else()
140140
endif()
141141

142142
install(FILES ${DIST_HDRS} DESTINATION include/${TARGET})
143-
if (ANDROID)
144-
install(FILES ${DIST_ANDROID_HDRS} DESTINATION include/${TARGET_LINUX})
143+
if (LINUX OR ANDROID)
144+
install(FILES ${DIST_LINUX_HDRS} DESTINATION include/${TARGET_LINUX})
145145
else()
146146
install(FILES ${DIST_GENERIC_HDRS} DESTINATION include/${TARGET_GENERIC})
147147
endif()

libs/utils/include/utils/Condition.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#ifndef TNT_UTILS_CONDITION_H
1818
#define TNT_UTILS_CONDITION_H
1919

20-
#if defined(__ANDROID__)
20+
#if defined(__linux__)
2121
#include <utils/linux/Condition.h>
2222
#else
2323
#include <utils/generic/Condition.h>

libs/utils/include/utils/Mutex.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#ifndef TNT_UTILS_MUTEX_H
1818
#define TNT_UTILS_MUTEX_H
1919

20-
#if defined(__ANDROID__)
20+
#if defined(__linux__)
2121
#include <utils/linux/Mutex.h>
2222
#else
2323
#include <utils/generic/Mutex.h>

0 commit comments

Comments
 (0)