Fixed buggy logic for cosmotool target to use while building python module

This commit is contained in:
Guilhem Lavaux 2015-02-10 14:00:55 +01:00
parent 622c575265
commit 90c9d70d6e

View File

@ -22,11 +22,11 @@ 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(NOT BUILD_SHARED_LIBS AND BUILD_STATIC_LIBS)
SET(CosmoTool_local CosmoTool_static)
ELSE(NOT BUILD_SHARED_LIBS AND BUILD_STATIC_LIBS)
#IF(NOT BUILD_SHARED_LIBS AND BUILD_STATIC_LIBS)
# SET(CosmoTool_local CosmoTool_static)
#ELSE(NOT BUILD_SHARED_LIBS AND BUILD_STATIC_LIBS)
SET(CosmoTool_local CosmoTool)
ENDIF(NOT 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")