Skip to content

Commit 89cac3c

Browse files
Hopefull Linux Fixes
1 parent 0d27fc6 commit 89cac3c

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

.github/workflows/build_baker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
- name: Download dependencies
1818
if: matrix.os == 'ubuntu-latest'
19-
run: sudo apt install build-essential pkgconf autoconf libtool libx11-dev libxft-dev libxext-dev libwayland-dev libxkbcommon-dev libegl1-mesa-dev libibus-1.0-dev
19+
run: sudo apt install build-essential pkgconf autoconf libtool libx11-dev libxft-dev libxext-dev libwayland-dev libxkbcommon-dev libgl1-mesa-dev libibus-1.0-dev libcurl4-openssl-dev
2020

2121
- name: Get latest CMake if possible
2222
uses: lukka/get-cmake@latest

neo/CMakeLists.txt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -289,10 +289,6 @@ if( D3_COMPILER_IS_GCC_OR_CLANG )
289289
if( cxx_has_Wno-cpp20-compat )
290290
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-c++20-compat" )
291291
endif()
292-
293-
if ( NOT MSVC )
294-
find_package( OpenSSL REQUIRED )
295-
endif()
296292

297293
if(APPLE)
298294
add_definitions(-DMACOS_X=1)
@@ -325,15 +321,15 @@ if( D3_COMPILER_IS_GCC_OR_CLANG )
325321
message( FATAL_ERROR "Unsupported CPU architecture for OSX" )
326322
endif()
327323

328-
set( sys_libs ${sys_libs} "OpenSSL::SSL OpenSSL::Crypto -framework Carbon -framework Cocoa -framework IOKit" )
324+
set( sys_libs ${sys_libs} "-framework Carbon -framework Cocoa -framework IOKit" )
329325
elseif( WIN32 )
330326
# use 8MB stack instead of 1MB, so big models don't overflow it with _alloca()
331327
set( ldflags "${ldflags} -static-libgcc -static-libstdc++ -Wl, --large-address-aware --stack,8388608" )
332328
elseif( os STREQUAL "linux" )
333-
set( sys_libs ${sys_libs} dl OpenSSL::SSL OpenSSL::Crypto rt )
329+
set( sys_libs ${sys_libs} dl )
334330
elseif( os STREQUAL "freebsd" )
335331
find_library( EXECINFO_LIBRARIES execinfo /usr/lib /usr/local/lib )
336-
set( sys_libs ${sys_libs} OpenSSL::SSL OpenSSL::Crypto rt ${EXECINFO_LIBRARIES} )
332+
set( sys_libs ${sys_libs} ${EXECINFO_LIBRARIES} )
337333
endif()
338334
elseif( MSVC )
339335
add_compile_options( /MP ) # parallel build (use all cores, or as many as configured in VS)

neo/vcpkg.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
"name": "d3moddingkit",
33
"version": "0.0.1",
44
"dependencies": [
5-
"curl",
5+
{
6+
"name": "curl",
7+
"platform": "!linux"
8+
},
69
"openal-soft",
710
"sdl2",
811
{
@@ -13,7 +16,7 @@
1316
{
1417
"name": "freetype",
1518
"default-features": false,
16-
"features": ["error-strings","subpixel-rendering"]
19+
"features": [ "error-strings", "subpixel-rendering" ]
1720
}
1821
]
1922
}

0 commit comments

Comments
 (0)