expand comment about MinGW cross-compiler hack
This commit is contained in:
@ -35,7 +35,8 @@ if(PKG_KIM)
|
|||||||
option(DOWNLOAD_KIM "Download KIM-API from OpenKIM instead of using an already installed one" ${DOWNLOAD_KIM_DEFAULT})
|
option(DOWNLOAD_KIM "Download KIM-API from OpenKIM instead of using an already installed one" ${DOWNLOAD_KIM_DEFAULT})
|
||||||
if(DOWNLOAD_KIM)
|
if(DOWNLOAD_KIM)
|
||||||
message(STATUS "KIM-API download requested - we will build our own")
|
message(STATUS "KIM-API download requested - we will build our own")
|
||||||
# Workaround for cross compilation with MinGW, which messes up ${CMAKE_INSTALL_LIBDIR}
|
# Workaround for cross compilation with MinGW where ${CMAKE_INSTALL_LIBDIR}
|
||||||
|
# is a full path, so we need to remove the prefix
|
||||||
string(REPLACE ${CMAKE_INSTALL_PREFIX} "" _KIM_LIBDIR ${CMAKE_INSTALL_LIBDIR})
|
string(REPLACE ${CMAKE_INSTALL_PREFIX} "" _KIM_LIBDIR ${CMAKE_INSTALL_LIBDIR})
|
||||||
include(ExternalProject)
|
include(ExternalProject)
|
||||||
enable_language(C)
|
enable_language(C)
|
||||||
|
|||||||
@ -9,7 +9,8 @@ if(PKG_LATTE)
|
|||||||
option(DOWNLOAD_LATTE "Download the LATTE library instead of using an already installed one" ${DOWNLOAD_LATTE_DEFAULT})
|
option(DOWNLOAD_LATTE "Download the LATTE library instead of using an already installed one" ${DOWNLOAD_LATTE_DEFAULT})
|
||||||
if(DOWNLOAD_LATTE)
|
if(DOWNLOAD_LATTE)
|
||||||
message(STATUS "LATTE download requested - we will build our own")
|
message(STATUS "LATTE download requested - we will build our own")
|
||||||
# Workaround for cross compilation with MinGW, which messes up ${CMAKE_INSTALL_LIBDIR}
|
# Workaround for cross compilation with MinGW where ${CMAKE_INSTALL_LIBDIR}
|
||||||
|
# is a full path, so we need to remove the prefix
|
||||||
string(REPLACE ${CMAKE_INSTALL_PREFIX} "" _LATTE_LIBDIR ${CMAKE_INSTALL_LIBDIR})
|
string(REPLACE ${CMAKE_INSTALL_PREFIX} "" _LATTE_LIBDIR ${CMAKE_INSTALL_LIBDIR})
|
||||||
include(ExternalProject)
|
include(ExternalProject)
|
||||||
ExternalProject_Add(latte_build
|
ExternalProject_Add(latte_build
|
||||||
|
|||||||
Reference in New Issue
Block a user