From dffd542bb8d45f6846a65864a39674669915fce6 Mon Sep 17 00:00:00 2001 From: Feng Xiao Date: Fri, 5 Jun 2015 17:59:09 -0700 Subject: Update ./update_file_lists.sh. Make it executable and generate extract_includes.bat in the same directory. --- cmake/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cmake/CMakeLists.txt') diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index e8d670c9..727864ba 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -47,6 +47,11 @@ include(find_hash_map.cmake) configure_file(config.h.in config.h) configure_file(pbconfig.h.in google/protobuf/stubs/pbconfig.h) +if (MSVC) + string(REPLACE "/" "\\" PROTOBUF_SOURCE_WIN32_PATH ${protobuf_SOURCE_DIR}) + string(REPLACE "/" "\\" PROTOBUF_BINARY_WIN32_PATH ${protobuf_BINARY_DIR}) + configure_file(extract_includes.bat.in extract_includes.bat) +endif (MSVC) get_filename_component(protobuf_source_dir ${protobuf_SOURCE_DIR} PATH) -- cgit v1.2.3