[CMake][Win] Conditionally select DLL CRT or static CRT
[WebKit-https.git] / Source / JavaScriptCore / shell / PlatformWin.cmake
index 2e0fe88..0527863 100644 (file)
@@ -26,8 +26,8 @@ add_dependencies(testRegExp testRegExpLib)
 target_link_libraries(testRegExpLib JavaScriptCore)
 
 add_library(testapiLib SHARED ${TESTAPI_SOURCES})
-set_source_files_properties(../API/tests/CustomGlobalObjectClassTest.c PROPERTIES COMPILE_FLAGS "/TP /MT")
-set_source_files_properties(../API/tests/testapi.c PROPERTIES COMPILE_FLAGS "/TP /MT")
+set_source_files_properties(../API/tests/CustomGlobalObjectClassTest.c PROPERTIES COMPILE_FLAGS "/TP ${MSVC_RUNTIME_COMPILE_FLAG}")
+set_source_files_properties(../API/tests/testapi.c PROPERTIES COMPILE_FLAGS "/TP ${MSVC_RUNTIME_COMPILE_FLAG}")
 add_executable(testapi ${JSC_SOURCES})
 set_target_properties(testapi PROPERTIES OUTPUT_NAME "testapi${DEBUG_SUFFIX}")
 target_link_libraries(testapi shlwapi)