Skip to content

Commit

Permalink
Split CMakeModules into Modules and Toolchains
Browse files Browse the repository at this point in the history
  • Loading branch information
xycaleth committed Jun 10, 2020
1 parent 9606ce4 commit 6976d52
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ if(APPLE)
endif()

# Custom CMake Modules needed
list(INSERT CMAKE_MODULE_PATH 0 "${CMAKE_SOURCE_DIR}/CMakeModules")
list(INSERT CMAKE_MODULE_PATH 0 "${CMAKE_SOURCE_DIR}/cmake/Modules")

Include(CheckTypeSize)
check_type_size("void*" CMAKE_SIZEOF_VOID_P)
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ COPY . /usr/src/openjk
# Build i386 arch
RUN mkdir /usr/src/openjk/build.i386 &&\
cd /usr/src/openjk/build.i386 &&\
cmake -DCMAKE_TOOLCHAIN_FILE=CMakeModules/Toolchains/linux-i686.cmake \
cmake -DCMAKE_TOOLCHAIN_FILE=cmake/toolchains/linux-i686.cmake \
-DCMAKE_INSTALL_PREFIX=/opt \
-DBuildMPCGame=OFF -DBuildMPEngine=OFF -DBuildMPRdVanilla=OFF -DBuildMPUI=OFF \
-DBuildSPEngine=OFF -DBuildSPGame=OFF -DBuildSPRdVanilla=OFF \
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions scripts/travis/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ case "${host}" in
export CC=${host}-gcc
export CXX=${host}-g++
set -- \
-D CMAKE_TOOLCHAIN_FILE=$(pwd)/CMakeModules/Toolchains/${host}.cmake \
-D CMAKE_TOOLCHAIN_FILE=$(pwd)/cmake/toolchains/${host}.cmake \
"$@"
;;

(i?86-linux-gnu)
set -- \
-D CMAKE_TOOLCHAIN_FILE=$(pwd)/CMakeModules/Toolchains/linux-i686.cmake \
-D CMAKE_TOOLCHAIN_FILE=$(pwd)/cmake/toolchains/linux-i686.cmake \
"$@"
;;

Expand Down

0 comments on commit 6976d52

Please sign in to comment.