Skip to content

Commit

Permalink
modify extlib directory definition
Browse files Browse the repository at this point in the history
  • Loading branch information
200km committed Aug 25, 2024
1 parent 409652e commit f5ee306
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions ExtLibraries/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@ if(NOT DEFINED EXT_LIB_DIR)
set(EXT_LIB_DIR "${CMAKE_CURRENT_LIST_DIR}/../../ExtLibraries/")
endif()

if(NOT DEFINED SETTINGS_DIR)
set(SETTINGS_DIR "${CMAKE_CURRENT_LIST_DIR}/../settings/")
endif()

# windows path
string(REPLACE "\\" "/" EXT_LIB_DIR ${EXT_LIB_DIR})
string(REPLACE "\\" "/" SETTINGS_DIR ${SETTINGS_DIR})

message("ExtLibraries install dir: ${EXT_LIB_DIR}")

Expand Down
1 change: 0 additions & 1 deletion ExtLibraries/cspice/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ include(FetchContent)
set(CSPICE_INSTALL_DIR ${EXT_LIB_DIR}/cspice)
set(GENERIC_KERNEL_URL_BASE https://naif.jpl.nasa.gov/pub/naif/generic_kernels)

set(SETTINGS_DIR "${CMAKE_CURRENT_LIST_DIR}/../../settings/")
set(GENERIC_KERNEL_INSTALL_DIR ${SETTINGS_DIR}/environment/cspice)

if(WIN32)
Expand Down
2 changes: 0 additions & 2 deletions ExtLibraries/lunar_gravity_field/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ cmake_minimum_required(VERSION 3.18)

include(FetchContent)

set(SETTINGS_DIR "${CMAKE_CURRENT_LIST_DIR}/../../settings/")

set(LUNAR_GRAVITY_FIELD_INSTALL_DIR ${SETTINGS_DIR}/environment/gravity_field)

set(LUNAR_GRAVITY_FIELD_URL_BASE https://pds-geosciences.wustl.edu/grail/grail-l-lgrs-5-rdr-v1/grail_1001/shadr)
Expand Down
2 changes: 0 additions & 2 deletions ExtLibraries/nrlmsise00/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ cmake_minimum_required(VERSION 3.18)
include(ExternalProject)
include(FetchContent)

set(SETTINGS_DIR "${CMAKE_CURRENT_LIST_DIR}/../../settings/")

set(NRLMSISE_INSTALL_DIR ${EXT_LIB_DIR}/nrlmsise00)
set(TABLE_FILE_INSTALL_DIR ${SETTINGS_DIR}/environment/space_weather)

Expand Down

0 comments on commit f5ee306

Please sign in to comment.