File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -531,7 +531,7 @@ write_basic_package_version_file(
531
531
# Set config script install location in a location that find_package() will
532
532
# look for, which is different on MS Windows than for UNIX
533
533
# Note: also set in POCO_GENERATE_PACKAGE macro in cmake/PocoMacros.cmake
534
- if (WIN32 )
534
+ if (MSVC )
535
535
set (PocoConfigPackageLocation "cmake" )
536
536
else ()
537
537
set (PocoConfigPackageLocation "${CMAKE_INSTALL_LIBDIR} /cmake/${PROJECT_NAME} " )
Original file line number Diff line number Diff line change @@ -40,7 +40,12 @@ if(WIN32)
40
40
endforeach ()
41
41
endif (X64)
42
42
endif ()
43
- find_program (CMAKE_MC_COMPILER mc.exe HINTS "${sdk_bindir} " "${kit_bindir} " "${kit81_bindir} " ${kit10_bindir}
43
+ if (MINGW)
44
+ find_program (CMAKE_MC_COMPILER windmc.exe HINTS "${sdk_bindir} " "${kit_bindir} "
45
+ DOC "path to message compiler" )
46
+ else ()
47
+ find_program (CMAKE_MC_COMPILER mc.exe HINTS "${sdk_bindir} " "${kit_bindir} " "${kit81_bindir} " ${kit10_bindir}
48
+ endif ()
44
49
DOC "path to message compiler" )
45
50
if (NOT CMAKE_MC_COMPILER)
46
51
message (FATAL_ERROR "message compiler not found: required to build" )
@@ -237,7 +242,7 @@ endif()
237
242
# Set config script install location in a location that find_package() will
238
243
# look for, which is different on MS Windows than for UNIX
239
244
# Note: also set in root CMakeLists.txt
240
- if (WIN32 )
245
+ if (MSVC )
241
246
set (PocoConfigPackageLocation "cmake" )
242
247
else ()
243
248
set (PocoConfigPackageLocation "${CMAKE_INSTALL_LIBDIR} /cmake/${PROJECT_NAME} " )
You can’t perform that action at this time.
0 commit comments