Bug #503

Runtime linking fails

Added by Timo Korthals about 7 years ago. Updated over 6 years ago.

Status:ClosedStart date:2017-02-28
Priority:NormalDue date:
Assignee:Christof Elbrechter% Done:

0%

Category:-
Target version:-

Description

It is recommended to set CMAKE_PREFIX_PATH, so that find commands find the proper sources.
In my case, linkage was done against tons of third-party shipped libraries when not set.
So none of the build executables were actually runnable.

Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt      (revision 4627)
+++ CMakeLists.txt      (working copy)
@@ -235,8 +235,10 @@
 ELSEIF(APPLE)
   SET(ARCH_DEPENDENT_INCLUDE_PATHS "")
   SET(PKG_SEARCH_PATHS "/usr;/usr/local")
+  LIST(APPEND CMAKE_PREFIX_PATH "/usr;/usr/local")
 ELSE(WIN32)
   SET(PKG_SEARCH_PATHS "/usr;/usr/local")
+  LIST(APPEND CMAKE_PREFIX_PATH "/usr;/usr/local")
   IF(ICL_64BIT)
     SET(ARCH_DEPENDENT_LIB_PATHS "lib/x86_64-linux-gnu;lib/intel64")
     SET(ARCH_DEPENDENT_INCLUDE_PATHS "include/x86_64-linux-gnu")

History

#1 Updated by Alexander Neumann over 6 years ago

  • Status changed from New to Closed

Did this is fix-cmake-prefix. I am not sure if this will influence builds for the standard directory of "/vol/ni". But since you use 'Append' it should be possible to prefix CMAKE_PREFIX_PATH with any custom path. If the compilations succeeds on the build slaves I will merge the change into 'master'. Thanks!

Also available in: Atom PDF