From: Amine Khaldi Date: Sun, 7 Sep 2014 18:18:00 +0000 (+0000) Subject: [CALC] X-Git-Tag: backups/0.3.17@66124~640 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=57ab19b141d3c2859dda59a4c994868971c55b4b [CALC] * Fix Clang build. svn path=/trunk/; revision=64071 --- diff --git a/reactos/base/applications/calc/CMakeLists.txt b/reactos/base/applications/calc/CMakeLists.txt index 870e6f10fa2..85332bd76ea 100644 --- a/reactos/base/applications/calc/CMakeLists.txt +++ b/reactos/base/applications/calc/CMakeLists.txt @@ -13,8 +13,12 @@ list(APPEND SOURCE add_executable(calc ${SOURCE} resource.rc) set_module_type(calc win32gui UNICODE) add_importlibs(calc advapi32 user32 gdi32 msvcrt kernel32) -if(MSVC) + +if(CMAKE_C_COMPILER_ID STREQUAL "Clang") + target_link_libraries(calc mingwex) +elseif(MSVC) add_importlibs(calc ntdll) endif() + add_pch(calc calc.h SOURCE) add_cd_file(TARGET calc DESTINATION reactos/system32 FOR all)