Skip to content

Commit

Permalink
Post-merge
Browse files Browse the repository at this point in the history
  • Loading branch information
OMNES Florian committed Sep 12, 2024
1 parent 53f4417 commit 606fde2
Showing 1 changed file with 0 additions and 41 deletions.
41 changes: 0 additions & 41 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -194,47 +194,6 @@ if (${BUILD_MERSENNE_TWISTER_PYBIND11})
find_package(pybind11 REQUIRED)
endif()

#Define install directory
if (NOT DEPS_INSTALL_DIR)
SET(DEPS_INSTALL_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../rte-antares-deps-${CMAKE_BUILD_TYPE})

else()
if(NOT IS_ABSOLUTE ${DEPS_INSTALL_DIR})
SET(DEPS_INSTALL_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../${DEPS_INSTALL_DIR})
endif()
endif()


# Add DEPS_INSTALL_DIR with antares-xpansion CMAKE_BUILD_TYPE
if ("${CMAKE_BUILD_TYPE}" STREQUAL "Release")

string(REPLACE ${CMAKE_BUILD_TYPE} Release
DEPS_INSTALL_DIR_XPANSION
${DEPS_INSTALL_DIR})

list(APPEND CMAKE_PREFIX_PATH ${DEPS_INSTALL_DIR_XPANSION})

elseif("${CMAKE_BUILD_TYPE}" STREQUAL "debug")

string(REPLACE ${CMAKE_BUILD_TYPE} Debug
DEPS_INSTALL_DIR_XPANSION
${DEPS_INSTALL_DIR})

list(APPEND CMAKE_PREFIX_PATH ${DEPS_INSTALL_DIR_XPANSION})

endif()

list(APPEND CMAKE_PREFIX_PATH ${DEPS_INSTALL_DIR})
message(STATUS "CMAKE_PREFIX_PATH : ${CMAKE_PREFIX_PATH}")

# Build Needed dependencies
add_subdirectory(antares-deps)

#Add needed definition in case of external dependencies compilation
include (antares-deps/cmake/additionnal-definitions.cmake)

set(Boost_LIB_PREFIX "lib")
set(Boost_DEBUG 1)
#Boost header libraries
find_package(Boost REQUIRED)

Expand Down

0 comments on commit 606fde2

Please sign in to comment.