mirror of
https://git.planet-casio.com/Lephenixnoir/fxsdk.git
synced 2024-12-28 04:23: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() {
|
||||
# CMake version; automatically configure
|
||||
if [[ -e "CMakeLists.txt" ]]; then
|
||||
if [[ ! -e "build-fx" ]]; then
|
||||
if [[ ! -e "build-fx/Makefile" ]]; then
|
||||
cmake -B build-fx \
|
||||
-DCMAKE_MODULE_PATH="$PREFIX/lib/cmake/fxsdk" \
|
||||
-DCMAKE_TOOLCHAIN_FILE="$PREFIX/lib/cmake/fxsdk/FX9860G.cmake"
|
||||
|
@ -183,7 +183,7 @@ fxsdk_build_fx() {
|
|||
fxsdk_build_cg() {
|
||||
# CMake version; automatically configure
|
||||
if [[ -e "CMakeLists.txt" ]]; then
|
||||
if [[ ! -e "build-cg" ]]; then
|
||||
if [[ ! -e "build-cg/Makefile" ]]; then
|
||||
cmake -B build-cg \
|
||||
-DCMAKE_MODULE_PATH="$PREFIX/lib/cmake/fxsdk" \
|
||||
-DCMAKE_TOOLCHAIN_FILE="$PREFIX/lib/cmake/fxsdk/FXCG50.cmake"
|
||||
|
|
Loading…
Reference in a new issue