Skip to content

Commit

Permalink
Merge commit 'ba2f4227198c7480994cea07f54675b1c4531baa' into ref-webs…
Browse files Browse the repository at this point in the history
…ocketpp-subtree
  • Loading branch information
codemercenary committed Aug 20, 2014
2 parents 3765cff + ba2f422 commit f5f734c
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions contrib/websocketpp/CMakeLists.txt
Expand Up @@ -50,14 +50,6 @@ set (WEBSOCKETPP_BUILD_ROOT ${CMAKE_CURRENT_BINARY_DIR})
set (WEBSOCKETPP_BIN ${WEBSOCKETPP_BUILD_ROOT}/bin)
set (WEBSOCKETPP_LIB ${WEBSOCKETPP_BUILD_ROOT}/lib)

# CMake install step prefix. I assume linux users want the prefix to
# be the default /usr or /usr/local so this is only adjusted on Windows.
# - Windows: Build the INSTALL project in your solution file.
# - Linux/OSX: make install.
if (MSVC)
set (CMAKE_INSTALL_PREFIX "${WEBSOCKETPP_ROOT}/install")
endif ()

############ Build customization

# Override from command line "CMake -D<OPTION>=TRUE/FALSE/0/1/ON/OFF"
Expand Down Expand Up @@ -226,12 +218,12 @@ print_used_build_config()

export (PACKAGE websocketpp)

configure_file (websocketpp-config.cmake.in "${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/websocketpp-config.cmake" @ONLY)
configure_file (websocketpp-configVersion.cmake.in "${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/websocketpp-configVersion.cmake" @ONLY)
configure_file (websocketpp-config.cmake.in websocketpp-config.cmake @ONLY)
configure_file (websocketpp-configVersion.cmake.in websocketpp-configVersion.cmake @ONLY)

# Install the websocketpp-config.cmake and websocketpp-configVersion.cmake
install (FILES
"${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/websocketpp-config.cmake"
"${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/websocketpp-configVersion.cmake"
"websocketpp-config.cmake"
"websocketpp-configVersion.cmake"
DESTINATION "${INSTALL_CMAKE_DIR}" COMPONENT dev)

0 comments on commit f5f734c

Please sign in to comment.