diff options
author | Tony Kelman <tony@kelman.net> | 2015-03-08 15:33:27 -0700 |
---|---|---|
committer | Tony Kelman <tony@kelman.net> | 2015-03-08 17:30:09 -0700 |
commit | a8b688c734d6dac677f7c68a2d915f85baf41b2b (patch) | |
tree | b3a27c9d143df5aeddc4dd38c583024ac9a3da47 /utils.cmake | |
parent | 50381b951a2b156c1c236c77d34ac0fddbc0ea46 (diff) | |
download | libutf8proc-a8b688c734d6dac677f7c68a2d915f85baf41b2b.tar.gz libutf8proc-a8b688c734d6dac677f7c68a2d915f85baf41b2b.tar.bz2 |
Minimal cmake build script
move flags for MSVC
rename lump.txt to lump.md, add data/*.txt to .gitignore
Diffstat (limited to 'utils.cmake')
-rw-r--r-- | utils.cmake | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/utils.cmake b/utils.cmake new file mode 100644 index 0000000..63fc426 --- /dev/null +++ b/utils.cmake @@ -0,0 +1,20 @@ + +function (disallow_intree_builds) + # Adapted from LLVM's toplevel CMakeLists.txt file + if( CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR AND NOT MSVC_IDE ) + message(FATAL_ERROR " + In-source builds are not allowed. CMake would overwrite the + makefiles distributed with utf8proc. Please create a directory + and run cmake from there. Building in a subdirectory is + fine, e.g.: + + mkdir build + cd build + cmake .. + + This process created the file `CMakeCache.txt' and the + directory `CMakeFiles'. Please delete them. + + ") + endif() +endfunction() |