Skip to content

Commit

Permalink
Fix build regression on Windows (CHECK_INCLUDE_FILES requires C langu…
Browse files Browse the repository at this point in the history
…age support)
  • Loading branch information
ras0219-msft committed Jan 9, 2018
1 parent 23d16d7 commit b8d1c06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Release/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ if(CPPREST_EXCLUDE_WEBSOCKETS)
set(CPPREST_WEBSOCKETS_IMPL none CACHE STRING "Internal use.")
endif()

CHECK_INCLUDE_FILES(xlocale.h HAVE_XLOCALE_H)
if(NOT WIN32)
CHECK_INCLUDE_FILES(xlocale.h HAVE_XLOCALE_H)
endif()

if(APPLE) # Note: also iOS
set(CPPREST_PPLX_IMPL apple CACHE STRING "Internal use.")
set(CPPREST_WEBSOCKETS_IMPL wspp CACHE STRING "Internal use.")
Expand Down

0 comments on commit b8d1c06

Please sign in to comment.