mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 07:03:25 +00:00
removed useless option
This commit is contained in:
4
.github/workflows/cmake-multi-platform.yml
vendored
4
.github/workflows/cmake-multi-platform.yml
vendored
@@ -40,7 +40,7 @@ jobs:
|
|||||||
git clone https://github.com/microsoft/vcpkg "$VCPKG_ROOT"
|
git clone https://github.com/microsoft/vcpkg "$VCPKG_ROOT"
|
||||||
- name: Configure (cmake --preset)
|
- name: Configure (cmake --preset)
|
||||||
shell: bash
|
shell: bash
|
||||||
run: cmake --preset linux-release -DOMATH_BUILD_TESTS=ON -DOMATH_BUILD_BENCHMARK=OFF -DOMATH_BUILD_VIA_VCPKG=ON -DVCPKG_MANIFEST_FEATURES="imgui;avx2;tests"
|
run: cmake --preset linux-release-vcpkg -DOMATH_BUILD_TESTS=ON -DOMATH_BUILD_BENCHMARK=OFF -DOMATH_BUILD_VIA_VCPKG=ON -DVCPKG_MANIFEST_FEATURES="imgui;avx2;tests"
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -75,7 +75,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Configure (cmake --preset)
|
- name: Configure (cmake --preset)
|
||||||
shell: bash
|
shell: bash
|
||||||
run: cmake --preset windows-release -DOMATH_BUILD_TESTS=ON -DOMATH_BUILD_BENCHMARK=OFF -DOMATH_BUILD_VIA_VCPKG=ON -DVCPKG_MANIFEST_FEATURES="imgui;avx2;tests"
|
run: cmake --preset windows-release-vcpkg -DOMATH_BUILD_TESTS=ON -DOMATH_BUILD_BENCHMARK=OFF -DOMATH_BUILD_VIA_VCPKG=ON -DVCPKG_MANIFEST_FEATURES="imgui;avx2;tests"
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
2
.idea/vcs.xml
generated
2
.idea/vcs.xml
generated
@@ -2,7 +2,5 @@
|
|||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="VcsDirectoryMappings">
|
<component name="VcsDirectoryMappings">
|
||||||
<mapping directory="" vcs="Git" />
|
<mapping directory="" vcs="Git" />
|
||||||
<mapping directory="$PROJECT_DIR$/extlibs/benchmark" vcs="Git" />
|
|
||||||
<mapping directory="$PROJECT_DIR$/extlibs/googletest" vcs="Git" />
|
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
||||||
@@ -23,13 +23,8 @@ option(OMATH_SUPRESS_SAFETY_CHECKS "Supress some safety checks in release build
|
|||||||
option(OMATH_USE_UNITY_BUILD "Will enable unity build to speed up compilation" OFF)
|
option(OMATH_USE_UNITY_BUILD "Will enable unity build to speed up compilation" OFF)
|
||||||
option(OMATH_ENABLE_LEGACY "Will enable legacy classes that MUST be used ONLY for backward compatibility" ON)
|
option(OMATH_ENABLE_LEGACY "Will enable legacy classes that MUST be used ONLY for backward compatibility" ON)
|
||||||
|
|
||||||
option(OMATH_BUILD_VIA_VCPKG "Will enable building using vcpkg, vcpkg will override some options that were set in vcpkg.json file, and search for dependencies using vcpkg" OFF)
|
|
||||||
|
|
||||||
if (OMATH_BUILD_VIA_VCPKG AND NOT CMAKE_TOOLCHAIN_FILE)
|
if (VCPKG_MANIFEST_FEATURES)
|
||||||
message(FATAL_ERROR "[${PROJECT_NAME}] CMAKE_TOOLCHAIN_FILE IS EMPTY! Please set env variable called 'VCPKG_ROOT' to vcpkg root folder here is an example: 'C:/vcpkg' or '/home/user/vcpkg' ")
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
if (OMATH_BUILD_VIA_VCPKG AND VCPKG_MANIFEST_FEATURES)
|
|
||||||
foreach (omath_feature IN LISTS VCPKG_MANIFEST_FEATURES)
|
foreach (omath_feature IN LISTS VCPKG_MANIFEST_FEATURES)
|
||||||
if (omath_feature STREQUAL "imgui")
|
if (omath_feature STREQUAL "imgui")
|
||||||
set(OMATH_IMGUI_INTEGRATION ON)
|
set(OMATH_IMGUI_INTEGRATION ON)
|
||||||
|
|||||||
@@ -9,8 +9,6 @@
|
|||||||
"installDir": "${sourceDir}/cmake-build/install/${presetName}",
|
"installDir": "${sourceDir}/cmake-build/install/${presetName}",
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"CMAKE_CXX_COMPILER": "cl.exe",
|
"CMAKE_CXX_COMPILER": "cl.exe",
|
||||||
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
|
|
||||||
"VCPKG_INSTALLED_DIR": "${sourceDir}/cmake-build/vcpkg_installed",
|
|
||||||
"CMAKE_MAKE_PROGRAM": "Ninja"
|
"CMAKE_MAKE_PROGRAM": "Ninja"
|
||||||
},
|
},
|
||||||
"condition": {
|
"condition": {
|
||||||
@@ -19,6 +17,17 @@
|
|||||||
"rhs": "Windows"
|
"rhs": "Windows"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "windows-base-vcpkg",
|
||||||
|
"hidden": true,
|
||||||
|
"inherits": "windows-base",
|
||||||
|
"cacheVariables": {
|
||||||
|
"OMATH_BUILD_VIA_VCPKG": "ON",
|
||||||
|
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
|
||||||
|
"VCPKG_INSTALLED_DIR": "${sourceDir}/cmake-build/vcpkg_installed",
|
||||||
|
"VCPKG_MANIFEST_FEATURES": "tests;imgui;avx2"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "windows-debug",
|
"name": "windows-debug",
|
||||||
"displayName": "Debug",
|
"displayName": "Debug",
|
||||||
@@ -30,17 +39,15 @@
|
|||||||
{
|
{
|
||||||
"name": "windows-debug-vcpkg",
|
"name": "windows-debug-vcpkg",
|
||||||
"displayName": "Debug",
|
"displayName": "Debug",
|
||||||
"inherits": "windows-base",
|
"inherits": "windows-base-vcpkg",
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"CMAKE_BUILD_TYPE": "Debug",
|
"CMAKE_BUILD_TYPE": "Debug"
|
||||||
"OMATH_BUILD_VIA_VCPKG": "ON",
|
|
||||||
"VCPKG_MANIFEST_FEATURES": "tests;imgui;avx2"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "windows-release-vcpkg",
|
"name": "windows-release-vcpkg",
|
||||||
"displayName": "Release",
|
"displayName": "Release",
|
||||||
"inherits": "windows-base",
|
"inherits": "windows-base-vcpkg",
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"CMAKE_BUILD_TYPE": "Release",
|
"CMAKE_BUILD_TYPE": "Release",
|
||||||
"OMATH_BUILD_VIA_VCPKG": "ON"
|
"OMATH_BUILD_VIA_VCPKG": "ON"
|
||||||
@@ -62,8 +69,6 @@
|
|||||||
"installDir": "${sourceDir}/cmake-build/install/${presetName}",
|
"installDir": "${sourceDir}/cmake-build/install/${presetName}",
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"CMAKE_CXX_COMPILER": "clang++",
|
"CMAKE_CXX_COMPILER": "clang++",
|
||||||
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
|
|
||||||
"VCPKG_INSTALLED_DIR": "${sourceDir}/cmake-build/vcpkg_installed",
|
|
||||||
"CMAKE_MAKE_PROGRAM": "ninja"
|
"CMAKE_MAKE_PROGRAM": "ninja"
|
||||||
},
|
},
|
||||||
"condition": {
|
"condition": {
|
||||||
@@ -72,6 +77,17 @@
|
|||||||
"rhs": "Linux"
|
"rhs": "Linux"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "linux-base-vcpkg",
|
||||||
|
"hidden": true,
|
||||||
|
"inherits": "linux-base",
|
||||||
|
"cacheVariables": {
|
||||||
|
"OMATH_BUILD_VIA_VCPKG": "ON",
|
||||||
|
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
|
||||||
|
"VCPKG_INSTALLED_DIR": "${sourceDir}/cmake-build/vcpkg_installed",
|
||||||
|
"VCPKG_MANIFEST_FEATURES": "tests;imgui;avx2"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "linux-debug",
|
"name": "linux-debug",
|
||||||
"displayName": "Linux Debug",
|
"displayName": "Linux Debug",
|
||||||
@@ -83,10 +99,9 @@
|
|||||||
{
|
{
|
||||||
"name": "linux-debug-vcpkg",
|
"name": "linux-debug-vcpkg",
|
||||||
"displayName": "Linux Debug",
|
"displayName": "Linux Debug",
|
||||||
"inherits": "linux-base",
|
"inherits": "linux-base-vcpkg",
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"CMAKE_BUILD_TYPE": "Debug",
|
"CMAKE_BUILD_TYPE": "Debug"
|
||||||
"OMATH_BUILD_VIA_VCPKG": "ON"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -100,10 +115,9 @@
|
|||||||
{
|
{
|
||||||
"name": "linux-release-vcpkg",
|
"name": "linux-release-vcpkg",
|
||||||
"displayName": "Linux Release",
|
"displayName": "Linux Release",
|
||||||
"inherits": "linux-debug",
|
"inherits": "linux-base-vcpkg",
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"CMAKE_BUILD_TYPE": "Release",
|
"CMAKE_BUILD_TYPE": "Release"
|
||||||
"OMATH_BUILD_VIA_VCPKG": "ON"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -134,8 +148,7 @@
|
|||||||
"displayName": "Darwin Debug",
|
"displayName": "Darwin Debug",
|
||||||
"inherits": "darwin-base",
|
"inherits": "darwin-base",
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"CMAKE_BUILD_TYPE": "Debug",
|
"CMAKE_BUILD_TYPE": "Debug"
|
||||||
"OMATH_BUILD_VIA_VCPKG": "ON"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -151,8 +164,7 @@
|
|||||||
"displayName": "Darwin Release",
|
"displayName": "Darwin Release",
|
||||||
"inherits": "darwin-debug",
|
"inherits": "darwin-debug",
|
||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"CMAKE_BUILD_TYPE": "Release",
|
"CMAKE_BUILD_TYPE": "Release"
|
||||||
"OMATH_BUILD_VIA_VCPKG": "ON"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user