mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
Ports: Fix CMake-based ports
The SDL port failed to build because the CMake toolchain filed pointed to the old root. Now the toolchain file assumes that the Root is in Build/Root. Additionally, the AK/ and Kernel/ headers need to be installed in the root too.
This commit is contained in:
committed by
Andreas Kling
parent
b0b03c52af
commit
4d4e578edf
Notes:
sideshowbarker
2024-07-19 05:59:15 +09:00
Author: https://github.com/predmond Commit: https://github.com/SerenityOS/serenity/commit/4d4e578edfd
@@ -7,10 +7,10 @@ endif()
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti -fno-exceptions")
|
||||
|
||||
# where to read from/write to
|
||||
set(CMAKE_SYSROOT $ENV{SERENITY_ROOT}/Root)
|
||||
set(CMAKE_STAGING_PREFIX $ENV{SERENITY_ROOT}/Root/usr)
|
||||
set(CMAKE_INSTALL_PREFIX $ENV{SERENITY_ROOT}/Root/usr)
|
||||
set(CMAKE_INSTALL_DATAROOTDIR $ENV{SERENITY_ROOT}/Root/usr/share)
|
||||
set(CMAKE_SYSROOT $ENV{SERENITY_ROOT}/Build/Root)
|
||||
set(CMAKE_STAGING_PREFIX $ENV{SERENITY_ROOT}/Build/Root/usr)
|
||||
set(CMAKE_INSTALL_PREFIX $ENV{SERENITY_ROOT}/Build/Root/usr)
|
||||
set(CMAKE_INSTALL_DATAROOTDIR $ENV{SERENITY_ROOT}/Build/Root/usr/share)
|
||||
|
||||
set(CMAKE_C_COMPILER i686-pc-serenity-gcc)
|
||||
set(CMAKE_CXX_COMPILER i686-pc-serenity-g++)
|
||||
|
||||
Reference in New Issue
Block a user