summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2011-08-05 19:29:16 -0700
committerVinson Lee <vlee@vmware.com>2011-08-05 19:29:16 -0700
commitb487ea42cb66f7872841547742d4ac0ff5f36625 (patch)
tree480f6ef2c0aef26bf9be2a9afaa6152239de60f4
parenta5180ddcbaabed86aea22312db387faa20afdfe0 (diff)
cmake: Fix build with CMake 2.6.
-rw-r--r--CMakeLists.txt8
-rw-r--r--generated_tests/CMakeLists.txt4
2 files changed, 6 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8bbbd79c..7cca31ec 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -19,9 +19,9 @@ execute_process(
OUTPUT_QUIET
ERROR_QUIET
RESULT_VARIABLE python_version_check_error_code)
-if(NOT(python_version_check_error_code EQUAL 0))
+if(NOT python_version_check_error_code EQUAL 0)
message(FATAL_ERROR "python version 2.6 or greater required")
-endif(NOT(python_version_check_error_code EQUAL 0))
+endif(NOT python_version_check_error_code EQUAL 0)
# Check for the presence of numpy, which is needed to build generated
# tests.
@@ -30,9 +30,9 @@ execute_process(
OUTPUT_QUIET
ERROR_QUIET
RESULT_VARIABLE import_numpy_error_code)
-if(NOT(import_numpy_error_code EQUAL 0))
+if(NOT import_numpy_error_code EQUAL 0)
message(FATAL_ERROR "numpy library not found")
-endif(NOT(import_numpy_error_code EQUAL 0))
+endif(NOT import_numpy_error_code EQUAL 0)
if (NOT MSVC)
CHECK_C_COMPILER_FLAG("-Wall" C_COMPILER_FLAG_WALL)
diff --git a/generated_tests/CMakeLists.txt b/generated_tests/CMakeLists.txt
index e174563f..79e2a01f 100644
--- a/generated_tests/CMakeLists.txt
+++ b/generated_tests/CMakeLists.txt
@@ -6,9 +6,9 @@ execute_process(
COMMAND python ${gen_builtin_uniform} --names-only
OUTPUT_VARIABLE builtin_uniform_tests
RESULT_VARIABLE builtin_uniform_tests_result)
-if(NOT(builtin_uniform_tests_result EQUAL 0))
+if(NOT builtin_uniform_tests_result EQUAL 0)
message(FATAL_ERROR "gen_builtin_uniform_tests.py failed")
-endif(NOT(builtin_uniform_tests_result EQUAL 0))
+endif(NOT builtin_uniform_tests_result EQUAL 0)
string(REPLACE "\n" ";" builtin_uniform_tests ${builtin_uniform_tests})
# Add a custom command which executes gen_builtin_uniform_tests.py