-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bare metal build seems to be working
- Loading branch information
1 parent
e5d8416
commit 909222f
Showing
5 changed files
with
63 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,70 @@ | ||
# default filepath locations for installed dependency files | ||
|
||
set( NETCDF_CXX_SHARED_LIB_DIR "/usr/lib/x86_64-linux-gnu" "/usr/lib" | ||
CACHE STRING "${description}" ) | ||
if( NOT DEFINED NETCDF_CXX_SHARED_LIB_DIR ) | ||
|
||
set( NETCDF_CXX_SHARED_LIB_DIR "/usr/lib/x86_64-linux-gnu" "/usr/lib" | ||
CACHE STRING "${description}" ) | ||
else() | ||
|
||
set( NETCDF_CXX_SHARED_LIB_DIR ${NETCDF_CXX_SHARED_LIB_DIR} | ||
CACHE STRING "${description}" ) | ||
endif() | ||
|
||
if( NOT DEFINED NETCDF_CXX_HEADERS_DIR ) | ||
|
||
set( NETCDF_CXX_HEADERS_DIR "/usr/lib/x86_64-linux-gnu" "/usr/lib" | ||
CACHE STRING "empty" ) | ||
set( NETCDF_CXX_HEADERS_DIR "/usr/lib/x86_64-linux-gnu" "/usr/lib" | ||
CACHE STRING "${description}" ) | ||
else() | ||
|
||
set( NETCDF_CXX_HEADERS_DIR ${NETCDF_CXX_HEADERS_DIR} | ||
CACHE STRING "${description}" ) | ||
endif() | ||
|
||
if( NOT DEFINED NETCDF_C_SHARED_LIB_DIR ) | ||
|
||
set( NETCDF_C_SHARED_LIB_DIR "/usr/lib/x86_64-linux-gnu" "/usr/lib" | ||
CACHE STRING "${description}" ) | ||
|
||
else() | ||
|
||
set( NETCDF_C_SHARED_LIB_DIR ${NETCDF_C_SHARED_LIB_DIR} | ||
CACHE STRING "${description}" ) | ||
|
||
endif() | ||
|
||
if( NOT DEFINED NETCDF_C_HEADERS_DIR ) | ||
set( NETCDF_C_HEADERS_DIR "/usr/include" CACHE STRING "${description}" ) | ||
else() | ||
set( NETCDF_C_HEADERS_DIR ${NETCDF_C_HEADERS_DIR} CACHE STRING "${description}" ) | ||
endif() | ||
|
||
if( NOT DEFINED ${LIBCONFIG_CXX_LIB_DIR}) | ||
set( LIBCONFIG_CXX_LIB_DIR "/usr/lib/x86_64-linux-gnu" "/usr/lib" | ||
CACHE STRING "${description}" ) | ||
else() | ||
set( LIBCONFIG_CXX_LIB_DIR ${LIBCONFIG_CXX_LIB_DIR} | ||
CACHE STRING "${description}" ) | ||
endif() | ||
|
||
if( NOT DEFINED ${LIBCONFIG_C_LIB_DIR} ) | ||
set( LIBCONFIG_C_LIB_DIR "/usr/lib/x86_64-linux-gnu" "/usr/lib" | ||
CACHE STRING "${description}" ) | ||
else() | ||
set( LIBCONFIG_C_LIB_DIR ${LIBCONFIG_C_LIB_DIR} | ||
CACHE STRING "${description}" ) | ||
endif() | ||
|
||
if( NOT DEFINED ${LIBCONFIG_CXX_HEADERS_DIR} ) | ||
set( LIBCONFIG_CXX_HEADERS_DIR "/usr/lib/x86_64-linux-gnu" "/usr/lib" | ||
CACHE STRING "${description}" ) | ||
|
||
else() | ||
set( LIBCONFIG_CXX_HEADERS_DIR ${LIBCONFIG_CXX_HEADERS_DIR} | ||
CACHE STRING "${description}" ) | ||
endif() | ||
if( NOT DEFINED ${LIBCONFIG_C_HEADERS_DIR} ) | ||
set( LIBCONFIG_C_HEADERS_DIR "/usr/lib/x86_64-linux-gnu" "/usr/lib" | ||
CACHE STRING "${description}" ) | ||
else() | ||
set( LIBCONFIG_C_HEADERS_DIR ${LIBCONFIG_C_HEADERS_DIR} | ||
CACHE STRING "${description}" ) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
cmake -S $1 -B $2 -G Ninja \ | ||
-D NETCDF_C_HEADERS_DIR="/home/5n4/workshop/tree/external/netcdf-c-install/include" \ | ||
-D NETCDF_CXX_HEADERS_DIR="/home/5n4/workshop/tree/external/netcdf-cxx4-install/include" \ | ||
-D NETCDF_C_SHARED_LIB_DIR="/home/5n4/workshop/tree/external/netcdf-c-install/lib" \ | ||
-D NETCDF_CXX_SHARED_LIB_DIR="/home/5n4/workshop/tree/external/netcdf-cxx4-install/lib" \ | ||
-D LIBCONFIG_C_HEADERS_DIR="/home/5n4/workshop/tree/external/libconfig_install/include" \ | ||
-D LIBCONFIG_CXX_HEADERS_DIR="/home/5n4/workshop/tree/external/libconfig_install/include" \ | ||
-D LIBCONFIG_C_LIB_DIR="/home/5n4/workshop/tree/external/libconfig_install/lib" \ | ||
-D LIBCONFIG_CXX_LIB_DIR="/home/5n4/workshop/tree/external/libconfig_install/lib" \ | ||
-DNETCDF_C_HEADERS_DIR="/home/5n4/build_right/external/netcdf-c-install/include" \ | ||
-DNETCDF_CXX_HEADERS_DIR="/home/5n4/build_right/external/netcdf-cxx4-install/include" \ | ||
-DNETCDF_C_SHARED_LIB_DIR="/home/5n4/build_right/external/netcdf-c-install/lib" \ | ||
-DNETCDF_CXX_SHARED_LIB_DIR="/home/5n4/build_right/external/netcdf-cxx4-install/lib" \ | ||
-DLIBCONFIG_C_HEADERS_DIR="/home/5n4/build_right/external/libconfig_install/include" \ | ||
-DLIBCONFIG_CXX_HEADERS_DIR="/home/5n4/build_right/external/libconfig_install/include" \ | ||
-DLIBCONFIG_C_LIB_DIR="/home/5n4/build_right/external/libconfig_install/lib" \ | ||
-DLIBCONFIG_CXX_LIB_DIR="/home/5n4/build_right/external/libconfig_install/lib" \ | ||
&> $2/cmake_output.txt ; | ||
|
||
cmake --build $2 -- -j 0 &> $2/build_output.txt |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.