Skip to content

Commit

Permalink
Skip compiling unicode.c for non GCC/Clang builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ajkhoury committed Nov 29, 2019
1 parent c731f58 commit 2e0ef67
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ set(APISET_SOURCES
apiset.c
resolve.c
main.c
unicode.c)
)
if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
set(APISET_SOURCES ${APISET_SOURCES} unicode.c)
endif()

add_executable(apiset ${APISET_SOURCES})
target_link_libraries(apiset ntdll)

0 comments on commit 2e0ef67

Please sign in to comment.