Skip to content

Commit

Permalink
[cmake] Darwin requires CMAKE_TOOLCHAIN_FILE
Browse files Browse the repository at this point in the history
Fail build when trying to run cmake without a CMAKE_TOOLCHAIN_FILE on OSX.
  • Loading branch information
fetzerch authored and FernetMenta committed Jan 29, 2016
1 parent 1f1915b commit b63a805
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions project/cmake/scripts/darwin/archsetup.cmake
@@ -1,3 +1,7 @@
if(NOT CMAKE_TOOLCHAIN_FILE)
message(FATAL_ERROR "CMAKE_TOOLCHAIN_FILE required for darwin. See ${PROJECT_SOURCE_DIR}/README.md")
endif()

set(ARCH_DEFINES -D_LINUX -DTARGET_POSIX -DTARGET_DARWIN)
if(CORE_SYSTEM_NAME STREQUAL "darwin")
list(APPEND ARCH_DEFINES -DTARGET_DARWIN_OSX)
Expand Down

0 comments on commit b63a805

Please sign in to comment.