Skip to content

Commit

Permalink
Added toolchain file for clang.
Browse files Browse the repository at this point in the history
  • Loading branch information
Forkk committed Aug 8, 2012
1 parent 2ec1b8a commit aa559c4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Clang.cmake
@@ -0,0 +1,16 @@
SET(CMAKE_CROSSCOMPILING false)

# which compilers to use for C and C++
SET(CMAKE_C_COMPILER clang)
SET(CMAKE_CXX_COMPILER clang++)

# here is the target environment located
SET(CMAKE_FIND_ROOT_PATH /usr)
SET(wxWidgets_ROOT_DIR /usr)

# adjust the default behaviour of the FIND_XXX() commands:
# search headers and libraries in the target environment, search
# programs in the host environment
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)

0 comments on commit aa559c4

Please sign in to comment.