aboutsummaryrefslogtreecommitdiffstats
path: root/science/simbody/files/patch-examples_CMakeLists.txt
blob: 600efcb37ee9a3743034610f403c19edd692ae0f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- examples/CMakeLists.txt.orig	2018-06-12 01:04:33 UTC
+++ examples/CMakeLists.txt
@@ -67,7 +67,7 @@ if(WIN32)
   set(EXAMPLES_INSTALL_BIN examples/bin/)
   set(EXAMPLES_INSTALL_SRC examples/src/)
 else()
-  set(EXAMPLES_INSTALL_BIN ${CMAKE_INSTALL_LIBDIR}/simbody/examples/) # if this changes, change the corresponding
+  set(EXAMPLES_INSTALL_BIN ${FREEBSD_EXAMPLESDIR}) # if this changes, change the corresponding
                                                                       # FULL version in file(RELATIVE_PATH ) command
   set(EXAMPLES_INSTALL_SRC ${CMAKE_INSTALL_DOCDIR}/examples/src/)
   # Use full paths for the following as it will be used to create a symlink
@@ -75,7 +75,7 @@ else()
   set(EXAMPLES_SYMLINK_BIN ${CMAKE_INSTALL_FULL_DOCDIR}/examples)
   file(RELATIVE_PATH EXAMPLE_INSTALL_BIN_REL_TO_DOC
       ${EXAMPLES_SYMLINK_BIN}
-      ${CMAKE_INSTALL_FULL_LIBDIR}/simbody/examples/)
+      ${FREEBSD_EXAMPLESDIR})
 endif()
 
 # Set RPATH for all example targets in this directory and in subdirectories.