Author: akhaldi
Date: Sun Sep 7 18:18:00 2014
New Revision: 64071
URL:
http://svn.reactos.org/svn/reactos?rev=64071&view=rev
Log:
[CALC]
* Fix Clang build.
Modified:
trunk/reactos/base/applications/calc/CMakeLists.txt
Modified: trunk/reactos/base/applications/calc/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/calc/CMa…
==============================================================================
--- trunk/reactos/base/applications/calc/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/base/applications/calc/CMakeLists.txt [iso-8859-1] Sun Sep 7 18:18:00
2014
@@ -13,8 +13,12 @@
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)