Commit 2721de2b092e2853cecc26fd67b1b8d5b84f6420

Authored by Bram Veldhoen
1 parent d4729e97

/usr/lib or /usr/lib64 depending on target platform.

Showing 1 changed file with 7 additions and 2 deletions
CMakeLists.txt
... ... @@ -154,8 +154,13 @@ endif()
154 154  
155 155 set(CMAKE_INSTALL_PREFIX /usr/)
156 156  
157   -# Install the dynamic library to /usr/lib64
158   -install(TARGETS redox DESTINATION lib64)
  157 +MESSAGE ("CMAKE_SIZEOF_VOID_P: ${CMAKE_SIZEOF_VOID_P}")
  158 +if(CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT LIB_SUFFIX)
  159 + set(LIB_SUFFIX "64")
  160 +endif()
  161 +
  162 +# Install the dynamic library to /usr/lib(64)
  163 +install(TARGETS redox DESTINATION lib${LIB_SUFFIX})
159 164  
160 165 # Install the headers into /usr/include/redox
161 166 install(FILES ${INC_REDOX_CORE} DESTINATION include/redox)
... ...