Skip to content

Commit

Permalink
Merge pull request #1 from eunchong/eunchong-patch-1
Browse files Browse the repository at this point in the history
Update CMakeLists.txt
  • Loading branch information
eunchong committed Dec 13, 2015
2 parents 48672b8 + 8c5a874 commit 3e8fb4f
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -131,16 +131,12 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
# Triton have to generate a syscalls table from the kernel source
# This following code tries to find the unistd_64.h or unistd_32.h header depending on the architecture.
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
FILE(
GLOB_RECURSE
syscalls_table_files
if(${ARCHITECTURE} STREQUAL "i386")
/usr/include/*unistd_32.h
endif(${ARCHITECTURE} STREQUAL "i386")
if(${ARCHITECTURE} STREQUAL "amd64")
/usr/include/*unistd_64.h
endif(${ARCHITECTURE} STREQUAL "amd64")
)
if(ARCHITECTURE STREQUAL "i386")
FILE(GLOB_RECURSE syscalls_table_files /usr/include/*unistd_32.h)
endif(ARCHITECTURE STREQUAL "i386")
if(ARCHITECTURE STREQUAL "amd64")
FILE(GLOB_RECURSE syscalls_table_files /usr/include/*unistd_64.h)
endif(ARCHITECTURE STREQUAL "amd64")
endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")

if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
Expand Down

0 comments on commit 3e8fb4f

Please sign in to comment.