Created
June 27, 2024 23:48
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
[csarbora@csarbora-mbp:~/Projects/Descent3] git clean -fdx | |
[csarbora@csarbora-mbp:~/Projects/Descent3] git diff | |
diff --git a/CMakeLists.txt b/CMakeLists.txt | |
index e15338b0..812264b2 100644 | |
--- a/CMakeLists.txt | |
+++ b/CMakeLists.txt | |
@@ -5,14 +5,21 @@ option(USE_VCPKG " | |
Set USE_VCPKG=OFF, or unset VCPKG_ROOT, to source dependencies from the system libraries. | |
If the build was previously configured to the opposite, you will need to delete the build dir first. | |
" ON) | |
+message("ENV{VCPKG_ROOT}: $ENV{VCPKG_ROOT}") | |
+message("USE_VCPKG: ${USE_VCPKG}") | |
+message("CMAKE_TOOLCHAIN_FILE before: ${CMAKE_TOOLCHAIN_FILE}") | |
if (DEFINED ENV{VCPKG_ROOT} AND USE_VCPKG) | |
+ message("using vcpkg") | |
set(VCPKG_CHAINLOAD_TOOLCHAIN_FILE ${CMAKE_TOOLCHAIN_FILE}) | |
set(CMAKE_TOOLCHAIN_FILE $ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake) | |
if(CMAKE_TOOLCHAIN_FILE STREQUAL VCPKG_CHAINLOAD_TOOLCHAIN_FILE) | |
# prevent endless recursion | |
unset(VCPKG_CHAINLOAD_TOOLCHAIN_FILE) | |
endif() | |
+else() | |
+ message("skipping vcpkg") | |
endif() | |
+message("CMAKE_TOOLCHAIN_FILE after: ${CMAKE_TOOLCHAIN_FILE}") | |
# set default cmake build type to Debug (None Debug Release RelWithDebInfo MinSizeRel) | |
if(NOT CMAKE_BUILD_TYPE AND NOT DEFINED ENV{CMAKE_BUILD_TYPE}) | |
[csarbora@csarbora-mbp:~/Projects/Descent3] cmake --preset mac | |
ENV{VCPKG_ROOT}: /Users/csarbora/Projects/vcpkg/ | |
USE_VCPKG: ON | |
CMAKE_TOOLCHAIN_FILE before: | |
using vcpkg | |
CMAKE_TOOLCHAIN_FILE after: /Users/csarbora/Projects/vcpkg//scripts/buildsystems/vcpkg.cmake | |
-- Running vcpkg install | |
Detecting compiler hash for triplet arm64-osx... | |
Compiler found: /Library/Developer/CommandLineTools/usr/bin/c++ | |
The following packages will be built and installed: | |
gtest:arm64-osx@1.14.0#1 -- /Users/csarbora/Projects/vcpkg/buildtrees/versioning_/versions/gtest/75ebdb53e37267a1d5f6283223367cd0aa1104ef | |
sdl2:arm64-osx@2.30.3#1 -- /Users/csarbora/Projects/vcpkg/buildtrees/versioning_/versions/sdl2/c85881901055bd799fb681fa24054a79f28f3d60 | |
* vcpkg-cmake:arm64-osx@2024-04-23 -- /Users/csarbora/Projects/vcpkg/buildtrees/versioning_/versions/vcpkg-cmake/e74aa1e8f93278a8e71372f1fa08c3df420eb840 | |
* vcpkg-cmake-config:arm64-osx@2024-05-23 -- /Users/csarbora/Projects/vcpkg/buildtrees/versioning_/versions/vcpkg-cmake-config/97a63e4bc1a17422ffe4eff71da53b4b561a7841 | |
zlib:arm64-osx@1.3.1 -- /Users/csarbora/Projects/vcpkg/buildtrees/versioning_/versions/zlib/3f05e04b9aededb96786a911a16193cdb711f0c9 | |
Additional packages (*) will be modified to complete this operation. | |
Restored 5 package(s) from /Users/csarbora/.cache/vcpkg/archives in 183 ms. Use --debug to see more details. | |
Installing 1/5 vcpkg-cmake-config:arm64-osx@2024-05-23... | |
Elapsed time to handle vcpkg-cmake-config:arm64-osx: 8.24 ms | |
vcpkg-cmake-config:arm64-osx package ABI: e1e9bb281797bd2799e5e2262ffe92027e37797b6715c828baae9f25f151787d | |
Installing 2/5 vcpkg-cmake:arm64-osx@2024-04-23... | |
Elapsed time to handle vcpkg-cmake:arm64-osx: 9.79 ms | |
vcpkg-cmake:arm64-osx package ABI: 877cef3a55ccdb4ec94009b25ac6d80067045f68283ca3d789c101f761f3fcc4 | |
Installing 3/5 gtest:arm64-osx@1.14.0#1... | |
Elapsed time to handle gtest:arm64-osx: 56.1 ms | |
gtest:arm64-osx package ABI: 334f46a4993ca2064226ad0ec1c518303ce7a3c75fdebe9e66c400fe05023cb9 | |
Installing 4/5 sdl2:arm64-osx@2.30.3#1... | |
Elapsed time to handle sdl2:arm64-osx: 104 ms | |
sdl2:arm64-osx package ABI: 7ea992131f6fc37c0d7f8aef32678b768ff1734f28f1c4144a0bcf48e15c457c | |
Installing 5/5 zlib:arm64-osx@1.3.1... | |
Elapsed time to handle zlib:arm64-osx: 37.1 ms | |
zlib:arm64-osx package ABI: efd15db36751c36b0037ba1b8c5171f9d1cbceaa0bf9b2738bf0ebbac65d8241 | |
Total install time: 215 ms | |
The package gtest is compatible with built-in CMake targets: | |
enable_testing() | |
find_package(GTest CONFIG REQUIRED) | |
target_link_libraries(main PRIVATE GTest::gtest GTest::gtest_main GTest::gmock GTest::gmock_main) | |
add_test(AllTestsInMain main) | |
sdl2 provides CMake targets: | |
find_package(SDL2 CONFIG REQUIRED) | |
target_link_libraries(main | |
PRIVATE | |
$<TARGET_NAME_IF_EXISTS:SDL2::SDL2main> | |
$<IF:$<TARGET_EXISTS:SDL2::SDL2>,SDL2::SDL2,SDL2::SDL2-static> | |
) | |
The package zlib is compatible with built-in CMake targets: | |
find_package(ZLIB REQUIRED) | |
target_link_libraries(main PRIVATE ZLIB::ZLIB) | |
-- Running vcpkg install - done | |
-- The C compiler identification is AppleClang 15.0.0.15000309 | |
-- The CXX compiler identification is AppleClang 15.0.0.15000309 | |
-- Detecting C compiler ABI info | |
-- Detecting C compiler ABI info - done | |
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - 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: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped | |
-- Detecting CXX compile features | |
-- Detecting CXX compile features - done | |
SDL2 Include Dir is /Users/csarbora/Projects/Descent3/builds/mac/vcpkg_installed/arm64-osx/include/SDL2 /Users/csarbora/Projects/Descent3/builds/mac/vcpkg_installed/arm64-osx/include;/Users/csarbora/Projects/Descent3/builds/mac/vcpkg_installed/arm64-osx/include/SDL2 | |
Building for MAC OSX | |
-- Found ZLIB: optimized;/Users/csarbora/Projects/Descent3/builds/mac/vcpkg_installed/arm64-osx/lib/libz.a;debug;/Users/csarbora/Projects/Descent3/builds/mac/vcpkg_installed/arm64-osx/debug/lib/libz.a (found version "1.3.1") | |
-- Configuring done (4.6s) | |
-- Generating done (0.5s) | |
-- Build files have been written to: /Users/csarbora/Projects/Descent3/builds/mac | |
[csarbora@csarbora-mbp:~/Projects/Descent3] cmake --preset mac -DUSE_VCPKG=OFF | |
CMake Error: Parse error in cache file /Users/csarbora/Projects/Descent3/builds/mac/CMakeCache.txt on line 314. Offending entry: If the build was previously configured to the opposite, you will need to delete the build dir first. | |
ENV{VCPKG_ROOT}: /Users/csarbora/Projects/vcpkg/ | |
USE_VCPKG: OFF | |
CMAKE_TOOLCHAIN_FILE before: /Users/csarbora/Projects/vcpkg/scripts/buildsystems/vcpkg.cmake | |
skipping vcpkg | |
CMAKE_TOOLCHAIN_FILE after: /Users/csarbora/Projects/vcpkg/scripts/buildsystems/vcpkg.cmake | |
-- Running vcpkg install | |
Detecting compiler hash for triplet arm64-osx... | |
Compiler found: /Library/Developer/CommandLineTools/usr/bin/c++ | |
All requested packages are currently installed. | |
Total install time: 333 ns | |
The package gtest is compatible with built-in CMake targets: | |
enable_testing() | |
find_package(GTest CONFIG REQUIRED) | |
target_link_libraries(main PRIVATE GTest::gtest GTest::gtest_main GTest::gmock GTest::gmock_main) | |
add_test(AllTestsInMain main) | |
sdl2 provides CMake targets: | |
find_package(SDL2 CONFIG REQUIRED) | |
target_link_libraries(main | |
PRIVATE | |
$<TARGET_NAME_IF_EXISTS:SDL2::SDL2main> | |
$<IF:$<TARGET_EXISTS:SDL2::SDL2>,SDL2::SDL2,SDL2::SDL2-static> | |
) | |
The package zlib is compatible with built-in CMake targets: | |
find_package(ZLIB REQUIRED) | |
target_link_libraries(main PRIVATE ZLIB::ZLIB) | |
-- Running vcpkg install - done | |
SDL2 Include Dir is /Users/csarbora/Projects/Descent3/builds/mac/vcpkg_installed/arm64-osx/include/SDL2 /Users/csarbora/Projects/Descent3/builds/mac/vcpkg_installed/arm64-osx/include;/Users/csarbora/Projects/Descent3/builds/mac/vcpkg_installed/arm64-osx/include/SDL2 | |
Building for MAC OSX | |
-- Configuring incomplete, errors occurred! | |
[csarbora@csarbora-mbp:~/Projects/Descent3] git clean -fdx | |
Removing builds/ | |
[csarbora@csarbora-mbp:~/Projects/Descent3] cmake --preset mac -DUSE_VCPKG=OFF | |
ENV{VCPKG_ROOT}: /Users/csarbora/Projects/vcpkg/ | |
USE_VCPKG: OFF | |
CMAKE_TOOLCHAIN_FILE before: | |
skipping vcpkg | |
CMAKE_TOOLCHAIN_FILE after: | |
-- The C compiler identification is AppleClang 15.0.0.15000309 | |
-- The CXX compiler identification is AppleClang 15.0.0.15000309 | |
-- Detecting C compiler ABI info | |
-- Detecting C compiler ABI info - done | |
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - 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: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped | |
-- Detecting CXX compile features | |
-- Detecting CXX compile features - done | |
CMake Error at CMakeLists.txt:119 (find_package): | |
By not providing "FindSDL2.cmake" in CMAKE_MODULE_PATH this project has | |
asked CMake to find a package configuration file provided by "SDL2", but | |
CMake did not find one. | |
Could not find a package configuration file provided by "SDL2" with any of | |
the following names: | |
SDL2Config.cmake | |
sdl2-config.cmake | |
Add the installation prefix of "SDL2" to CMAKE_PREFIX_PATH or set | |
"SDL2_DIR" to a directory containing one of the above files. If "SDL2" | |
provides a separate development package or SDK, be sure it has been | |
installed. | |
-- Configuring incomplete, errors occurred! | |
[csarbora@csarbora-mbp:~/Projects/Descent3] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment