summaryrefslogtreecommitdiffstats
path: root/Modules/CheckCSourceCompiles.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2006-08-27 15:19:25 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2006-08-27 15:19:25 (GMT)
commitd454231a0ad52f387bd97d5c683a3131d77c4701 (patch)
tree3351f58db38a5aa7acc03b509430a9baa69fc531 /Modules/CheckCSourceCompiles.cmake
parentb81a8e5855e40114280740afb8c0a3cdd366158d (diff)
downloadCMake-d454231a0ad52f387bd97d5c683a3131d77c4701.zip
CMake-d454231a0ad52f387bd97d5c683a3131d77c4701.tar.gz
CMake-d454231a0ad52f387bd97d5c683a3131d77c4701.tar.bz2
STYLE: fix #3519 (incorrect comment)
Alex
Diffstat (limited to 'Modules/CheckCSourceCompiles.cmake')
-rw-r--r--Modules/CheckCSourceCompiles.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/CheckCSourceCompiles.cmake b/Modules/CheckCSourceCompiles.cmake
index c6ef220..46f8605 100644
--- a/Modules/CheckCSourceCompiles.cmake
+++ b/Modules/CheckCSourceCompiles.cmake
@@ -2,7 +2,7 @@
# CHECK_C_SOURCE_COMPILES(SOURCE VAR)
# - macro which checks if the source code compiles
# SOURCE - source code to try to compile
-# VAR - variable to store size if the type exists.
+# VAR - variable to store whether the source code compiled
#
# The following variables may be set before calling this macro to
# modify the way the check is run:
@@ -14,7 +14,7 @@
MACRO(CHECK_C_SOURCE_COMPILES SOURCE VAR)
IF("${VAR}" MATCHES "^${VAR}$")
- SET(MACRO_CHECK_FUNCTION_DEFINITIONS
+ SET(MACRO_CHECK_FUNCTION_DEFINITIONS
"-D${VAR} ${CMAKE_REQUIRED_FLAGS}")
IF(CMAKE_REQUIRED_LIBRARIES)
SET(CHECK_C_SOURCE_COMPILES_ADD_LIBRARIES
@@ -43,14 +43,14 @@ MACRO(CHECK_C_SOURCE_COMPILES SOURCE VAR)
IF(${VAR})
SET(${VAR} 1 CACHE INTERNAL "Test ${VAR}")
MESSAGE(STATUS "Performing Test ${VAR} - Success")
- FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
+ FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
"Performing C SOURCE FILE Test ${VAR} succeded with the following output:\n"
"${OUTPUT}\n"
"Source file was:\n${SOURCE}\n")
ELSE(${VAR})
MESSAGE(STATUS "Performing Test ${VAR} - Failed")
SET(${VAR} "" CACHE INTERNAL "Test ${VAR}")
- FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
+ FILE(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
"Performing C SOURCE FILE Test ${VAR} failed with the following output:\n"
"${OUTPUT}\n"
"Source file was:\n${SOURCE}\n")