diff --git a/src/BuildMacIntel-MacPPC.cmake b/src/BuildMacIntel-MacPPC.cmake new file mode 100644 index 0000000..22c19d0 --- /dev/null +++ b/src/BuildMacIntel-MacPPC.cmake @@ -0,0 +1,11 @@ +################################################################ +# Name: BuildMacIntel-MacPPC.cmake +# Purpose: Build MacPPC binary on MacIntel +# Author: Cas Cremers +################################################################ + +message (STATUS "Building Apple Mac PPC version") +set (scythername "scyther-macppc") +add_executable (${scythername} ${Scyther_sources}) +set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fnested-functions -arch ppc") + diff --git a/src/BuildMacIntel.cmake b/src/BuildMacIntel.cmake index 996127c..08c1020 100644 --- a/src/BuildMacIntel.cmake +++ b/src/BuildMacIntel.cmake @@ -7,5 +7,5 @@ message (STATUS "Building Apple Mac Intel version") set (scythername "scyther-macintel") add_executable (${scythername} ${Scyther_sources}) -set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fnested-functions") +set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fnested-functions -arch i386") diff --git a/src/BuildPlatform.cmake b/src/BuildPlatform.cmake index dd9b3e9..79e9d06 100644 --- a/src/BuildPlatform.cmake +++ b/src/BuildPlatform.cmake @@ -7,16 +7,20 @@ # Retrieve Source_OS, Destination_OS (from -DTARGET) include (GetOS.cmake) +message (STATUS "Test ${Source_OS} ${Destination_OS}") # From source_os and destination_os make a new name for the build script if (Source_OS STREQUAL Destination_OS) set (BuildScriptName "Build${Source_OS}.cmake") else (Source_OS STREQUAL Destination_OS) set (BuildScriptName "Build${Source_OS}-${Destination_OS}.cmake") endif (Source_OS STREQUAL Destination_OS) +message (STATUS "Locating platform specific file ${BuildScriptName}") + +# Locate the file. If it exists, start it find_file (BuildScriptFile "${BuildScriptName}") if (BuildScriptFile) # Execute the build script - include (${BuildScriptFile}) + include (${BuildScriptName}) else (BuildScriptFile) # Could not find it! message (STATUS "Could not find ${BuildScriptName}")