Skip to content

Commit

Permalink
Use PLATFORM_ID to check platform
Browse files Browse the repository at this point in the history
  • Loading branch information
firejox committed May 21, 2023
1 parent ee1622f commit df982fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ endif()

if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86_64")
target_sources(fiber-objects PRIVATE
$<$<OR:$<BOOL:${UNIX}>,$<BOOL:${APPLE}>>:gas-amd64-sysv.s>
$<$<BOOL:${WIN32}>:gas-ms-x64.s>)
$<$<PLATFORM_ID:Linux,Darwin>:gas-amd64-sysv.s>
$<$<PLATFORM_ID:Windows>:gas-ms-x64.s>)
elseif (${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86")
target_sources(fiber-objects PRIVATE gas-i386-sysv.s)
endif()
Expand Down

0 comments on commit df982fb

Please sign in to comment.