winlibs / wineditline

An EditLine API implementation for the native Windows Console.
Other
21 stars 8 forks source link

cmake install does not honor CMAKE_INSTALL_PREFIX #8

Open mgood7123 opened 8 months ago

mgood7123 commented 8 months ago
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

cmb69 commented 4 weeks ago

Please report this upstream (https://sourceforge.net/projects/mingweditline/).