summaryrefslogtreecommitdiffstats
path: root/Help/guide/tutorial/Step8
diff options
context:
space:
mode:
authorBetsy McPhail <betsy.mcphail@kitware.com>2019-07-09 17:36:53 (GMT)
committerBrad King <brad.king@kitware.com>2019-08-19 15:49:05 (GMT)
commitbc64401c3d9355f3c8fd6a205b8ef9d24a795204 (patch)
treec6f83c6c3f49683011e7d5bd7756e9dee65796e2 /Help/guide/tutorial/Step8
parent49ce4d6ff4e70026ab1da6da91d7965ef61863ab (diff)
downloadCMake-bc64401c3d9355f3c8fd6a205b8ef9d24a795204.zip
CMake-bc64401c3d9355f3c8fd6a205b8ef9d24a795204.tar.gz
CMake-bc64401c3d9355f3c8fd6a205b8ef9d24a795204.tar.bz2
Tutorial: Improve Step 3
* Move `option(USE_MYMATH...` to the same location in all CMakeLists files
Diffstat (limited to 'Help/guide/tutorial/Step8')
-rw-r--r--Help/guide/tutorial/Step8/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/Help/guide/tutorial/Step8/CMakeLists.txt b/Help/guide/tutorial/Step8/CMakeLists.txt
index d8e9145..4d62cd1 100644
--- a/Help/guide/tutorial/Step8/CMakeLists.txt
+++ b/Help/guide/tutorial/Step8/CMakeLists.txt
@@ -7,15 +7,15 @@ project(Tutorial VERSION 1.0)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)
+# should we use our own math functions
+option(USE_MYMATH "Use tutorial provided math implementation" ON)
+
# does this system provide the log and exp functions?
include(CheckSymbolExists)
set(CMAKE_REQUIRED_LIBRARIES "m")
check_symbol_exists(log "math.h" HAVE_LOG)
check_symbol_exists(exp "math.h" HAVE_EXP)
-# should we use our own math functions
-option(USE_MYMATH "Use tutorial provided math implementation" ON)
-
# configure a header file to pass some of the CMake settings
# to the source code
configure_file(TutorialConfig.h.in TutorialConfig.h)