From 2e0ef677438d63aa5c629f225bfe64b9e220e0d3 Mon Sep 17 00:00:00 2001 From: ajkhoury Date: Thu, 28 Nov 2019 21:45:46 -0400 Subject: [PATCH] Skip compiling unicode.c for non GCC/Clang builds --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)