Skip to content

Commit e6754f7

Browse files
committed
mac support, needed threadlocal for the disassembler.cpp
1 parent 6ce4096 commit e6754f7

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

arch/powerpc/CMakeLists.txt

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,23 @@ if (DEFINED FORCE_TEST)
5353
set(TEST_LINK_DIRECTORIES )
5454
set(TEST_LINK_LIBRARIES capstone)
5555

56-
if (${CMAKE_SYSTEM_NAME} NOT MATCHES "Windows")
56+
if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "Windows")
5757
add_executable(test_disasm test_disasm.cpp disassembler.cpp)
5858
add_executable(test_asm test_asm.cpp assembler.cpp)
59+
60+
set_target_properties(test_disasm PROPERTIES
61+
CXX_STANDARD 17
62+
CXX_VISIBILITY_PRESET hidden
63+
CXX_STANDARD_REQUIRED ON
64+
VISIBILITY_INLINES_HIDDEN ON
65+
POSITION_INDEPENDENT_CODE ON)
66+
67+
set_target_properties(test_asm PROPERTIES
68+
CXX_STANDARD 17
69+
CXX_VISIBILITY_PRESET hidden
70+
CXX_STANDARD_REQUIRED ON
71+
VISIBILITY_INLINES_HIDDEN ON
72+
POSITION_INDEPENDENT_CODE ON)
5973

6074
target_include_directories(test_disasm PRIVATE ${TEST_INCLUDE_LIST})
6175
target_link_directories(test_disasm PRIVATE ${TEST_LINK_DIRECTORIES})

0 commit comments

Comments
 (0)