Removed slashes to prevent installing at root
@@ -130,9 +130,9 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set(SURVIVE_BUILT_PLUGINS)
if(WIN32)
- SET(LIB_INSTALL_DIR "" CACHE STRING bin/${CMAKE_GENERATOR_PLATFORM})
+ SET(LIB_INSTALL_DIR "" CACHE STRING bin/${CMAKE_GENERATOR_PLATFORM}/)
else()
- SET(LIB_INSTALL_DIR "" CACHE STRING lib)
+ SET(LIB_INSTALL_DIR "" CACHE STRING lib/)
endif()
function(SURVIVE_REGISTER_PLUGIN PLUGIN)
@@ -172,7 +172,7 @@ function(SURVIVE_REGISTER_PLUGIN PLUGIN)
#set_target_properties(${PLUGIN} PROPERTIES RUNTIME_OUTPUT_DIRECTORY_RELEASE "${OUTPUT_DIR}Release/plugins")
#set_target_properties(${PLUGIN} PROPERTIES RUNTIME_OUTPUT_DIRECTORY_RELWITHDEBINFO "${OUTPUT_DIR}RelWithDebInfo/plugins")
- install(TARGETS ${PLUGIN} DESTINATION ${LIB_INSTALL_DIR}/libsurvive/${PLUGIN_SUFFIX})
+ install(TARGETS ${PLUGIN} DESTINATION ${LIB_INSTALL_DIR}libsurvive/${PLUGIN_SUFFIX})
endfunction()
foreach(PLUGIN ${PLUGINS})
@@ -193,7 +193,7 @@ ENDIF()
set(SURVIVE_BUILT_PLUGINS "${SURVIVE_BUILT_PLUGINS}" PARENT_SCOPE)
-install(TARGETS ${SURVIVE_BUILT_PLUGINS} DESTINATION ${LIB_INSTALL_DIR}/libsurvive/plugins)
+install(TARGETS ${SURVIVE_BUILT_PLUGINS} DESTINATION ${LIB_INSTALL_DIR}libsurvive/plugins)
install(TARGETS survive DESTINATION ${LIB_INSTALL_DIR})
if(WIN32)
