diff options
author | Gennadiy Civil <gennadiycivil@users.noreply.github.com> | 2017-12-20 15:57:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-20 15:57:28 -0500 |
commit | 0062e4869f07a3ef235703ddf63af604b712446c (patch) | |
tree | 6adfa1b9e075dfaee61a396b3e19f24cfdde0b08 | |
parent | a37eedc3c15e57cea81722eea3f97b2aeb1659cf (diff) | |
parent | e17907da8039d6491f951434f71677490176f72f (diff) | |
download | googletest-0062e4869f07a3ef235703ddf63af604b712446c.tar.gz googletest-0062e4869f07a3ef235703ddf63af604b712446c.tar.bz2 googletest-0062e4869f07a3ef235703ddf63af604b712446c.zip |
Merge pull request #1357 from bryanzim/master
CMake fixes for paths with spaces
-rw-r--r-- | googlemock/CMakeLists.txt | 10 | ||||
-rw-r--r-- | googletest/CMakeLists.txt | 16 |
2 files changed, 13 insertions, 13 deletions
diff --git a/googlemock/CMakeLists.txt b/googlemock/CMakeLists.txt index ead51bf3..21d61b13 100644 --- a/googlemock/CMakeLists.txt +++ b/googlemock/CMakeLists.txt @@ -112,11 +112,11 @@ endif() # Install rules if(INSTALL_GMOCK) install(TARGETS gmock gmock_main - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} - LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) - install(DIRECTORY ${gmock_SOURCE_DIR}/include/gmock - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) + RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" + LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" + ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}") + install(DIRECTORY "${gmock_SOURCE_DIR}/include/gmock" + DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}") # configure and install pkgconfig files configure_file( diff --git a/googletest/CMakeLists.txt b/googletest/CMakeLists.txt index 3b907fd7..77b55cae 100644 --- a/googletest/CMakeLists.txt +++ b/googletest/CMakeLists.txt @@ -74,8 +74,8 @@ config_compiler_and_linker() # Defined in internal_utils.cmake. # Where Google Test's .h files can be found. include_directories( - ${gtest_SOURCE_DIR}/include - ${gtest_SOURCE_DIR}) + "${gtest_SOURCE_DIR}/include" + "${gtest_SOURCE_DIR}") # Summary of tuple support for Microsoft Visual Studio: # Compiler version(MS) version(cmake) Support @@ -88,7 +88,7 @@ include_directories( if (MSVC AND MSVC_VERSION EQUAL 1700) add_definitions(/D _VARIADIC_MAX=10) endif() - + ######################################################################## # # Defines the gtest & gtest_main libraries. User tests should link @@ -114,11 +114,11 @@ endif() # Install rules if(INSTALL_GTEST) install(TARGETS gtest gtest_main - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} - ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} - LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) - install(DIRECTORY ${gtest_SOURCE_DIR}/include/gtest - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) + RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" + ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}" + LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}") + install(DIRECTORY "${gtest_SOURCE_DIR}/include/gtest" + DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}") # configure and install pkgconfig files configure_file( |