Skip to content

cmake install does not honor CMAKE_INSTALL_PREFIX #8

Description

@mgood7123
install (TARGETS edit edit_test edit_test_dll
  DESTINATION "${CMAKE_SOURCE_DIR}/bin${LIB_SUFFIX}")
install (TARGETS edit_a
  DESTINATION "${CMAKE_SOURCE_DIR}/lib${LIB_SUFFIX}")
install (FILES editline/readline.h
  DESTINATION "${CMAKE_SOURCE_DIR}/include/editline")
string(TOUPPER "${CMAKE_BUILD_TYPE}" uppercase_CMAKE_BUILD_TYPE)
if (MSVC AND uppercase_CMAKE_BUILD_TYPE MATCHES "DEBUG")
  install (FILES ${CMAKE_CURRENT_BINARY_DIR}/Debug/edit_a.pdb
    DESTINATION "${CMAKE_SOURCE_DIR}/lib${LIB_SUFFIX}")
  install (FILES ${CMAKE_CURRENT_BINARY_DIR}/Debug/edit.pdb
    DESTINATION "${CMAKE_SOURCE_DIR}/bin${LIB_SUFFIX}")
endif()

this installs to the source dir instead of the install prefix dir

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions