Fixed compilation option for CosmoTool. Show a message to indicate which variant is used to build the python modules
This commit is contained in:
parent
beb651c79a
commit
68bdc4fb31
3 changed files with 30 additions and 23 deletions
|
@ -22,11 +22,13 @@ option(INTERNAL_HDF5 "Build internal version of HDF5" OFF)
|
|||
option(INTERNAL_NETCDF "Build internal version of NETCDF" OFF)
|
||||
option(INTERNAL_BOOST "Build internal version of BOOST" OFF)
|
||||
|
||||
IF(BUILD_SHARED_LIBS AND BUILD_STATIC_LIBS)
|
||||
IF(NOT BUILD_SHARED_LIBS AND BUILD_STATIC_LIBS)
|
||||
SET(CosmoTool_local CosmoTool_static)
|
||||
ELSE(BUILD_SHARED_LIBS AND BUILD_STATIC_LIBS)
|
||||
ELSE(NOT BUILD_SHARED_LIBS AND BUILD_STATIC_LIBS)
|
||||
SET(CosmoTool_local CosmoTool)
|
||||
ENDIF(BUILD_SHARED_LIBS AND BUILD_STATIC_LIBS)
|
||||
ENDIF(NOT BUILD_SHARED_LIBS AND BUILD_STATIC_LIBS)
|
||||
|
||||
MESSAGE(STATUS "Using the target ${CosmoTool_local} to build python module")
|
||||
|
||||
include(${CMAKE_SOURCE_DIR}/external/external_build.cmake)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue