From d96826f12b0172a6a5f3d74c8358ed5ce137a226 Mon Sep 17 00:00:00 2001 From: Matthew Woehlke Date: Thu, 9 Nov 2017 13:39:04 -0500 Subject: [PATCH] Fix Windows library install location Don't install LIBRARIES on Windows to `bin`; they belong in `lib`. (This appears to have been done in a mistaken attempt to install the DLL's to `bin`, which do need to be there, but RUNTIME DESTINATION already takes care of this.) --- CMakeLists.txt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a082038..6d1441f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -258,16 +258,10 @@ endif() ### ### General install settings ### -if(WIN32) - set(_library_dir bin) # .dll are in PATH, like executables -else() - set(_library_dir lib) -endif() - set(INCLUDE_INSTALL_ROOT_DIR ${CMAKE_INSTALL_PREFIX}/include) set(INCLUDE_INSTALL_DIR ${INCLUDE_INSTALL_ROOT_DIR}/yaml-cpp) -set(LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/${_library_dir}${LIB_SUFFIX}") +set(LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}") set(_INSTALL_DESTINATIONS RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin