diff --git a/CMakeLists.txt b/CMakeLists.txt index d7b837a..6dc608e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)