Skip to content

Commit

Permalink
Set CMAKE_INSTALL_LIBDIR to default, if undefined (#754)
Browse files Browse the repository at this point in the history
Fixes a bug introduced with #746
  • Loading branch information
Tones29 authored and rjanvier committed Jun 4, 2018
1 parent f29cfc2 commit 4808ba5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Expand Up @@ -25,6 +25,9 @@ set( INSTALL_DESTINATIONS CloudCompare )
# RPATH Linux/Unix: (dynamic) libs are put in a subdir of prefix/lib,
# since they are only used by qCC/ccViewer
if( UNIX AND NOT APPLE )
if( NOT CMAKE_INSTALL_LIBDIR )
set( CMAKE_INSTALL_LIBDIR ${CMAKE_INSTALL_PREFIX}/lib CACHE PATH "CloudCompare lib dir" )
endif( NOT CMAKE_INSTALL_LIBDIR )
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_LIBDIR}/cloudcompare")
endif()

Expand Down

0 comments on commit 4808ba5

Please sign in to comment.