Skip to content

Instantly share code, notes, and snippets.

@tomprince
Created April 10, 2011 12:53
Show Gist options
  • Save tomprince/912318 to your computer and use it in GitHub Desktop.
Save tomprince/912318 to your computer and use it in GitHub Desktop.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 60c6909..51757ff 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -7,7 +7,7 @@ endif(COMMAND cmake_policy)
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS true)
# prevent in-source builds
-IF(NOT ${INSOURCEBUILD} AND ${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
+IF(NOT INSOURCEBUILD AND ${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
MESSAGE(FATAL_ERROR "
CMake generation for this project is not allowed within the source directory!
Remove the CMake cache files and try again from another folder, e.g.:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment