Building Casablanca in Windows using cmake

Sep 18, 2015 at 3:59 PM
Hi,

I tried to build cpprest using cmake in Windows. There are a number of errors all related to boost and OpenSSL. I can try to fix them (for example pointing to my boost installation) but the question is this: do you use cmake to build the vs 2015 solutions?

Here are the errors:
........
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler using: Visual Studio 14 2015 Win64
Check for working CXX compiler using: Visual Studio 14 2015 Win64 -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.3/Modules/FindBoost.cmake:1245 (message):
  Unable to find the requested Boost libraries.

  Unable to find the Boost header files.  Please set BOOST_ROOT to the root
  directory containing Boost or BOOST_INCLUDEDIR to the directory containing
  Boost's headers.
Call Stack (most recent call first):
  CMakeLists.txt:117 (find_package)


CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.3/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
  Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
  system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES
  OPENSSL_INCLUDE_DIR) (Required is at least version "1.0")
Call Stack (most recent call first):
  C:/Program Files (x86)/CMake/share/cmake-3.3/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
  C:/Program Files (x86)/CMake/share/cmake-3.3/Modules/FindOpenSSL.cmake:334 (find_package_handle_standard_args)
  CMakeLists.txt:118 (find_package)


Configuring incomplete, errors occurred!
See also "F:/Projects/dev_tools/cpprest/cmake_build/CMakeFiles/CMakeOutput.log".
........
Thanks,

G.
Coordinator
Sep 18, 2015 at 6:15 PM
Unfortunately, we do not support building on Windows using CMake currently.

However, as you likely noticed, there are some directives in the CMakeLists.txt files for WIN32. These were from a previous attempt to support Windows. It shouldn't be too hard to bring those up to date; if you do, please consider contributing the fixes back.