-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
1. Removed `/FI` force include directive flag to accommodate recent [vcpkg port update](https://github.com/Starfield-Reverse-Engineering/Starfield-RE-vcpkg/). This addresses the redefinition error when compiling project with a clean commonblisf vcpkg package. 2. Reverted some notable changes in #19 , see below. --- Changes reverted: In [CommonLibSF/CMakePresets.json](https://github.com/Starfield-Reverse-Engineering/CommonLibSF/compare/main...gottyduke:CommonLibSF:main?expand=1#diff-6d621fcc34a299795af75ba4026fa929d2b8b506efda705e332cf7dd06e6904f): ```json { "name": "buildtype-debug-msvc", "hidden": true, "cacheVariables": { "CMAKE_BUILD_TYPE": "Debug", "CMAKE_CXX_FLAGS_DEBUG": "/Od /MDd", "CMAKE_SHARED_LINKER_FLAGS_DEBUG": "/DEBUG:FULL /LTCG:INCREMENTAL /DEBUGTYPE:FIXUP" } } ``` Specifying `/LTCG:INCREMENTAL` for a debug build with `/Od` doesn't make sense here, `/LTCG` would imply `/GL` and `/Od` disables all optimizations. The other reason is that `/LTCG` flag is **explicitly** turned off for debug build with ```cmake set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON) set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_DEBUG OFF) ``` Then the `/MDd` flag is also redundant, this has been specified with ```cmake "CMAKE_MSVC_RUNTIME_LIBRARY": "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL" ``` Othe occurrences of `/LTCG` and `/MDd`/`/MTd` has been removed for the same reason. `/MACHINE:x64` has been removed for linker flag, this is unnecessary. configurePresets and buildPresets have added the `<config>-clang-cl-msvc` variants, for generating a **visual studio** solution with ClangCL toolset. --- Fixes added for #19 : Updated the batch files to reflect the above CMakePresets.json changes. --- closes #22 --------- Co-authored-by: maintenance <[email protected]>
- Loading branch information
Showing
8 changed files
with
66 additions
and
45 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
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
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,4 +1,4 @@ | ||
echo off | ||
rd /s /q "build" | ||
cmake -B "%cd%/build" -S "%cd%/CommonLibSF" --preset=build-release-clang-cl | ||
cmake -B "%cd%/build" -S "%cd%/CommonLibSF" --preset=build-release-clang-cl-ninja | ||
cmake --build "%cd%/build" --config Release |
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,4 +1,4 @@ | ||
echo off | ||
rd /s /q "build" | ||
cmake -B "%cd%/build" -S "%cd%/CommonLibSF" --preset=build-release-msvc | ||
cmake -B "%cd%/build" -S "%cd%/CommonLibSF" --preset=build-release-msvc-ninja | ||
cmake --build "%cd%/build" --config Release |
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,3 +1,3 @@ | ||
echo off | ||
rd /s /q "build" | ||
cmake -B "%cd%/build" -S "%cd%/CommonLibSF" --preset=solution-clang-cl | ||
cmake -B "%cd%/build" -S "%cd%/CommonLibSF" --preset=build-debug-clang-cl-msvc |
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,3 +1,3 @@ | ||
echo off | ||
rd /s /q "build" | ||
cmake -B "%cd%/build" -S "%cd%/CommonLibSF" --preset=solution-msvc | ||
cmake -B "%cd%/build" -S "%cd%/CommonLibSF" --preset=build-debug-msvc-msvc |