mirror of
https://git.planet-casio.com/Lephenixnoir/fxsdk.git
synced 2024-12-29 13:03:37 +01:00
cmake: reconfigure based on Makefile, not folder
This way [fxsdk build-*] will reconfigure if CMake fails the first time.
This commit is contained in:
parent
e75c6aca59
commit
fe36c99f98
1 changed files with 2 additions and 2 deletions
|
@ -168,7 +168,7 @@ fxsdk_build() {
|
||||||
fxsdk_build_fx() {
|
fxsdk_build_fx() {
|
||||||
# CMake version; automatically configure
|
# CMake version; automatically configure
|
||||||
if [[ -e "CMakeLists.txt" ]]; then
|
if [[ -e "CMakeLists.txt" ]]; then
|
||||||
if [[ ! -e "build-fx" ]]; then
|
if [[ ! -e "build-fx/Makefile" ]]; then
|
||||||
cmake -B build-fx \
|
cmake -B build-fx \
|
||||||
-DCMAKE_MODULE_PATH="$PREFIX/lib/cmake/fxsdk" \
|
-DCMAKE_MODULE_PATH="$PREFIX/lib/cmake/fxsdk" \
|
||||||
-DCMAKE_TOOLCHAIN_FILE="$PREFIX/lib/cmake/fxsdk/FX9860G.cmake"
|
-DCMAKE_TOOLCHAIN_FILE="$PREFIX/lib/cmake/fxsdk/FX9860G.cmake"
|
||||||
|
@ -183,7 +183,7 @@ fxsdk_build_fx() {
|
||||||
fxsdk_build_cg() {
|
fxsdk_build_cg() {
|
||||||
# CMake version; automatically configure
|
# CMake version; automatically configure
|
||||||
if [[ -e "CMakeLists.txt" ]]; then
|
if [[ -e "CMakeLists.txt" ]]; then
|
||||||
if [[ ! -e "build-cg" ]]; then
|
if [[ ! -e "build-cg/Makefile" ]]; then
|
||||||
cmake -B build-cg \
|
cmake -B build-cg \
|
||||||
-DCMAKE_MODULE_PATH="$PREFIX/lib/cmake/fxsdk" \
|
-DCMAKE_MODULE_PATH="$PREFIX/lib/cmake/fxsdk" \
|
||||||
-DCMAKE_TOOLCHAIN_FILE="$PREFIX/lib/cmake/fxsdk/FXCG50.cmake"
|
-DCMAKE_TOOLCHAIN_FILE="$PREFIX/lib/cmake/fxsdk/FXCG50.cmake"
|
||||||
|
|
Loading…
Reference in a new issue