Skip to content

Build of source fails on 'external' directories #32

@chrisco484

Description

@chrisco484

I was following the "Getting Started" steps, using the option where I download the source and compile it into, presumably a static lib, rather than use the single header option.

i.e.

Alternatively, download the latest release then follow:
Build instructions;

So I have the source downloaded and then run a CMake build but get errors regarding missing CMakeList.txt files in some 'external' directories:

I'm using SDL3pp release 0.4 and Windows/Visual Studio 2022:

PS C:\dev\SDL3pp-0.4> cmake -S . -B build
-- The CXX compiler identification is MSVC 19.44.35221.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:19 (add_subdirectory):
The source directory

C:/dev/SDL3pp-0.4/external/SDL

does not contain a CMakeLists.txt file.

CMake Error at CMakeLists.txt:50 (add_subdirectory):
The source directory

C:/dev/SDL3pp-0.4/external/SDL_image

does not contain a CMakeLists.txt file.

CMake Error at CMakeLists.txt:69 (add_subdirectory):
The source directory

C:/dev/SDL3pp-0.4/external/SDL_ttf

does not contain a CMakeLists.txt file.

Have I missed a step somewhere that puts files into those external directories?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions