From b8c8d0306d73b6ebf328515953838ab4eb1bbd6e Mon Sep 17 00:00:00 2001 From: Jacob Beard Date: Thu, 25 Apr 2019 07:01:43 -0400 Subject: [PATCH] Fixes related to NVIDIAGameWorks/PhysX#39 --- externals/cmakemodules/linux/LinuxRegular.cmake | 5 +++++ physx/buildtools/cmake_generate_projects.py | 1 + 2 files changed, 6 insertions(+) create mode 100644 externals/cmakemodules/linux/LinuxRegular.cmake diff --git a/externals/cmakemodules/linux/LinuxRegular.cmake b/externals/cmakemodules/linux/LinuxRegular.cmake new file mode 100644 index 000000000..4b8f329bd --- /dev/null +++ b/externals/cmakemodules/linux/LinuxRegular.cmake @@ -0,0 +1,5 @@ +SET(CMAKE_CROSSCOMPILING FALSE) +SET(CMAKE_SYSTEM_NAME Linux) +SET(CMAKE_SYSTEM_VERSION 1) +SET(CMAKE_SYSROOT ${LINUX_ROOT}) +SET(CMAKE_LIBRARY_ARCHITECTURE x86_64-linux-gnu) diff --git a/physx/buildtools/cmake_generate_projects.py b/physx/buildtools/cmake_generate_projects.py index e2247bb6b..df7a0142f 100644 --- a/physx/buildtools/cmake_generate_projects.py +++ b/physx/buildtools/cmake_generate_projects.py @@ -247,6 +247,7 @@ def getPlatformCMakeParams(self): elif self.targetPlatform == 'linux': outString = outString + ' -DTARGET_BUILD_PLATFORM=linux' outString = outString + ' -DPX_OUTPUT_ARCH=x86' + outString = outString + ' -DCMAKE_TOOLCHAIN_FILE=' + os.environ['PM_CMakeModules_PATH'] + '/linux/LinuxRegular.cmake' if self.compiler == 'clang-crosscompile': outString = outString + ' -DCMAKE_TOOLCHAIN_FILE=' + \ os.environ['PM_CMakeModules_PATH'] + \