diff --git a/src/BuildPlatform.cmake b/src/BuildPlatform.cmake index 3f6e178..f54a5eb 100644 --- a/src/BuildPlatform.cmake +++ b/src/BuildPlatform.cmake @@ -21,10 +21,10 @@ endif (Source_OS STREQUAL Destination_OS) message (STATUS "Locating platform specific file ${BuildScriptName}") # Locate the file. If it exists, start it -if (EXISTS "${BuildScriptName}") +if (EXISTS ${BuildScriptName}) # Execute the build script - include (${BuildScriptFile}) -else (EXISTS "${BuildScriptName}") + include (${BuildScriptName}) +else (EXISTS ${BuildScriptName}) # Could not find it! message (STATUS "Could not find ${BuildScriptName}") if (Source_OS STREQUAL Destination_OS) @@ -32,5 +32,5 @@ else (EXISTS "${BuildScriptName}") else (Source_OS STREQUAL Destination_OS) message (FATAL_ERROR "Don't know how to build for ${Destination_OS} on ${Source_OS}") endif (Source_OS STREQUAL Destination_OS) -endif (EXISTS "${BuildScriptName}") +endif (EXISTS ${BuildScriptName}) diff --git a/src/UniversalBinary.cmake b/src/UniversalBinary.cmake index aadf130..1dd17d2 100644 --- a/src/UniversalBinary.cmake +++ b/src/UniversalBinary.cmake @@ -9,8 +9,8 @@ find_program(lipoexecutable lipo) if (lipoexecutable) # Check whether we already have the binaries set (UBrequiredfiles FALSE) - set (ppcfile "${CMAKE_CURRENT_BINARY_DIR}/scyther-macppc") - set (intelfile "${CMAKE_CURRENT_BINARY_DIR}/scyther-macintel") + set (ppcfile "scyther-macppc") + set (intelfile "scyther-macintel") if (EXISTS "${ppcfile}") if (EXISTS "${intelfile}") set (UBrequiredfiles TRUE)