Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Fix make install dir error #41

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Lib/DLL/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ IF(WIN32 AND NOT UNIX)
target_link_libraries (RakNetDLL ${RAKNET_LIBRARY_LIBS})
ELSE(WIN32 AND NOT UNIX)
target_link_libraries (RakNetDLL ${RAKNET_LIBRARY_LIBS})
INSTALL(TARGETS RakNetDLL DESTINATION ${RakNet_SOURCE_DIR}/Lib/DLL)
INSTALL(TARGETS RakNetDLL DESTINATION ${CMAKE_INSTALL_PREFIX}/Lib)
ENDIF(WIN32 AND NOT UNIX)
8 changes: 6 additions & 2 deletions Lib/LibStatic/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
cmake_minimum_required(VERSION 2.6)
project(RakNetLibStatic)

IF(NOT WIN32)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
ENDIF(NOT WIN32)

FILE(GLOB ALL_HEADER_SRCS ${RakNet_SOURCE_DIR}/Source/*.h)
FILE(GLOB ALL_CPP_SRCS ${RakNet_SOURCE_DIR}/Source/*.cpp)

Expand All @@ -27,8 +31,8 @@ IF(WIN32 AND NOT UNIX)

ELSE(WIN32 AND NOT UNIX)
target_link_libraries (RakNetLibStatic ${RAKNET_LIBRARY_LIBS})
INSTALL(TARGETS RakNetLibStatic DESTINATION ${RakNet_SOURCE_DIR}/Lib/RakNetLibStatic)
INSTALL(FILES ${ALL_HEADER_SRCS} DESTINATION ${RakNet_SOURCE_DIR}/include/raknet)
INSTALL(TARGETS RakNetLibStatic DESTINATION ${CMAKE_INSTALL_PREFIX}/Lib)
INSTALL(FILES ${ALL_HEADER_SRCS} DESTINATION ${CMAKE_INSTALL_PREFIX}/include/raknet)
ENDIF(WIN32 AND NOT UNIX)