source: trunk/CMakeLists.txt @ 3941

Last change on this file since 3941 was 3941, checked in by bradbell, 2 years ago

merge to branch: trunk
from repository: https://github.com/coin-or/CppAD
start hash code: b7056a15a1028d7be587b70a3ecc44b1f42dc05e
end hash code: c8c4cc081accff3628e7e66370ec01e4c99afe8d

commit c8c4cc081accff3628e7e66370ec01e4c99afe8d
Author: Brad Bell <bradbell@…>
Date: Thu Jun 1 23:16:39 2017 -0600

Changes automatically generated by the autotools.

commit f4392bc3eee8f6d0ccd45a0bb3be51181e211680
Author: Brad Bell <bradbell@…>
Date: Thu Jun 1 23:11:56 2017 -0600

  1. Add colpack_jac.cpp example (rename colpack_jac.cpp->colpack_jacobian.cpp).
  2. Add colpack_hescpp example (rename colpack_hes.cpp->colpack_hessian.cpp).


test_one.sh.in: adapt to using test_boolofvoid for testing.
sparse_hes.hpp: fix bug in cppad.symmetric case.

commit 086b8a8709b0c9cb01ce2cf8bc7910e903105ff7
Author: Brad Bell <bradbell@…>
Date: Thu Jun 1 08:54:59 2017 -0600

  1. Fix bug in use of colpack (see kludge in comments).
  2. Fix colpack.symmetric (not general) and add colpack.general.
  3. Deprecate colpack.star.
  4. More autotools from install to deprecated.
  5. Advance to cppad-20170601.

commit 23f26c060648f5c6fc62a1598c659aeccc5ca46f
Author: Brad Bell <bradbell@…>
Date: Tue May 30 08:14:04 2017 -0700

Advance to cppad-20170530.

commit 97f8c08509865d1bfb7ec2e5cd557ddc979f8412
Author: Brad Bell <bradbell@…>
Date: Tue May 30 07:38:47 2017 -0700

debug_rel branch:
There is a problem with speed sparse_hessian debug that goes back to master.
Supresss debug in cppad speed tests until it is fixed.

commit 39ea0d7d9c041784ccd26ce80d19a7ab02752818
Author: Brad Bell <bradbell@…>
Date: Mon May 29 22:34:22 2017 -0700

debug_rel branch:
run_cmake.sh: fix debug_none case.
CMakeLists.txt: use cppad_debug_which to determine debug or release.
CMakeLists.txt: let set_compile_flags determkine build type.

commit 191553e54dca407207789cf0d7c6c27fe6188775
Author: Brad Bell <bradbell@…>
Date: Mon May 29 19:53:08 2017 -0700

debug_rel branch:
Use set_compile_flags in introduction.

commit fba276a84e58d9a0d0944168d5706b7446beb32c
Author: Brad Bell <bradbell@…>
Date: Mon May 29 19:46:30 2017 -0700

debug_rel branch:
Use set_compile_flags in eample/multi_thread subdirectories.

commit 66c8cdb266fa3af29b211b8c870a3aed7a13b021
Author: Brad Bell <bradbell@…>
Date: Mon May 29 18:56:48 2017 -0700

debug_rel branch:
Use set_compile_flags in speed directory.

commit c431b15ee7714d3106234bc527ba2f9a836750e1
Author: Brad Bell <bradbell@…>
Date: Mon May 29 18:36:51 2017 -0700

debug_rel branch:
Convert cppad_ipopt to use set_compile_flags and cppad_debug_which.


CMakeLists.txt: alwasy compile for release to reduce testing time.

commit 2c95b0019f1b665fb14b9f00b049e8b5fb11f89d
Author: Brad Bell <bradbell@…>
Date: Mon May 29 16:55:07 2017 -0700

debug_rel branch:
Add cppad_debug_which to the cmake command line.

commit fd8d1498cf6dc092deca41f764cbb2a001a4cc88
Author: Brad Bell <bradbell@…>
Date: Mon May 29 08:14:23 2017 -0700

debug_rel branch:
Change random_debug_release -> set_compile_flags.

commit 159f5a5aa09012213a52f4ed1c9f0607129a5fe7
Author: Brad Bell <bradbell@…>
Date: Mon May 29 06:50:43 2017 -0700

debug_rel branch:
Update the autotools automatically generated build files.


batch_edit.sh: Start comments about a plan for editing all the source files.
get_sacado.sh: advance to trilions-12.10.11.
makefile.am: advance to trilinos-12.10.1

commit 302153317cd296ec6f927c3202cf96bf38594bbb
Author: Brad Bell <bradbell@…>
Date: Mon May 29 05:20:00 2017 -0700

debug_rel branch:
Add error message if sacado configuration file does not exist.

commit 3f01a631ae808c3a1359e53e1cd55e9a0ea88711
Author: Brad Bell <bradbell@…>
Date: Mon May 29 04:24:00 2017 -0700

debug_rel branch:
CMakeLists.txt: automate naming of libraries Sacado needs.
checkpoint.cpp: fix warnings.

commit dd240928c0c8b6972a8197c985ccc01f08b8886b
Author: Brad Bell <bradbell@…>
Date: Sun May 28 08:25:20 2017 -0700

debug_rel branch:
sparse_sub_hes.cpp: add missing cases found by clang compiler.

commit 30a0c35f1ac50ec425be9a2b7b026284026eccd7
Author: Brad Bell <bradbell@…>
Date: Sun May 28 07:57:36 2017 -0700

debug_rel branch:
eigen_cholesky.hpp: fix compiler warning.
harmonic_time.cpp: remove include that is not used.
forward_active.cpp: fix compiler warning.

commit 4876d14e49dc235865b1574fb38a55cf5ea7a422
Author: Brad Bell <bradbell@…>
Date: Sun May 28 06:19:48 2017 -0700

debug_rel branch:
random_debug_release.cmake: fix comment, remove message replaced by random_choice_0123 in output.
multiple_solution.cpp: fix warnings with clang compiler.
eigen_cholesky.hpp: fix warnings with clang compiler.
compare_change.cpp: fix CPPAD_DEBUG_AND_RELEASE case.

commit 2c51a18f35188d04d2f94069382439580e23f4ac
Author: Brad Bell <bradbell@…>
Date: Sat May 27 21:04:37 2017 -0700

debug_rel branch:
Advance version to cppad-20170527.

commit 4500887b362537774b05e954ad2a95b65a7b8ba0
Author: Brad Bell <bradbell@…>
Date: Sat May 27 09:04:56 2017 -0700

debug_rel branch:
Ramdomly select debug or release flags in example directory.


CMakeLists.txt: always debug for multi_threed examples.

commit 140b5269a0b1a30643894e5a7a8c9a5eb1310301
Author: Brad Bell <bradbell@…>
Date: Sat May 27 08:10:51 2017 -0700

debug_rel branch:
Changing how we set all debug and release flags.

commit e6fb2639db1288fb75de4030b5906df1e41756f9
Author: Brad Bell <bradbell@…>
Date: Sat May 27 07:30:24 2017 -0700

debug_rel branch:
Replace use of cppad_extra_debug by CPPAD_DEBUG_AND_RELEASE.

commit fbbfd0f6e94862174a8a7a17308489ffddb28084
Author: Brad Bell <bradbell@…>
Date: Sat May 27 05:55:58 2017 -0700

debug_rel branch:
Improve random selection of which files are build for release or debug.


forward.cpp: use new -DCPPAD_DEBUG_AND_RELEASE flag.

commit 284be366fb5e2f685a0c71ea6a0e3f74584bf187
Author: Brad Bell <bradbell@…>
Date: Thu May 25 07:39:32 2017 -0700

debug_rel branch:
Add test that failed before change to player.


player.hpp: Fix so it has the same size in debug and release more.
checkpoint.cpp: fix warning when compiling for release.
run_cmake.sh: prepare to use random number to switch debug and release set.
CMakeLists.txt: switch to only test debug (for now).

commit f32375b77e3825628fee6cb160f691a32c48b796
Author: Brad Bell <bradbell@…>
Date: Wed May 24 12:04:27 2017 -0700

debug_rel branch:
forward.cpp: fix a warning during release build.

commit 5fcc7eb78ae8de9f1dbc6c4f0c76fe38e8aeba95
Author: Brad Bell <bradbell@…>
Date: Wed May 24 10:11:12 2017 -0700

debug_rel branch:
CMakeLists.txt: make easy to mix debug and release builds.
eigen_mat_inv.hpp: fix release version warning.

commit 696266f3d62079f5e3bfb1a0f60a7e4f8134e068
Author: Brad Bell <bradbell@…>
Date: Wed May 24 05:43:29 2017 -0700

push_git2svn.py: user ./build in place of ./build/work.
testvector.hpp: improve comments about replacing CPPAD_TESTVECTOR.

  • Property svn:keywords set to Id
File size: 13.7 KB
Line 
1# -----------------------------------------------------------------------------
2# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-17 Bradley M. Bell
3#
4# CppAD is distributed under multiple licenses. This distribution is under
5# the terms of the
6#                     Eclipse Public License Version 1.0.
7#
8# A copy of this license is included in the COPYING file of this distribution.
9# Please visit http://www.coin-or.org/CppAD/ for information on other licenses.
10# -----------------------------------------------------------------------------
11# =============================================================================
12# Some constants
13# =============================================================================
14# Suppress warnging that WIN32 not defined on cygwin
15SET(CMAKE_LEGACY_CYGWIN_WIN32 0) # remove when version below >= 2.8.4
16#
17# Set the minimum required version of cmake for this project.
18# see http://www.cmake.org/pipermail/cmake/2013-January/053213.html
19CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
20#
21# cppad_version is used by set_version.sh to get the version number.
22SET(cppad_version      "20170601" )
23SET(cppad_url          "http://www.coin-or.org/CppAD" )
24SET(cppad_description  "Differentiation of C++ Algorithms" )
25#
26# Set name of this project and create the variables
27# cppad_BINARY_DIR and cppad_SOURCE_DIR.
28# project(projectname [CXX] [C] [Java])
29PROJECT(cppad)
30#
31# Add this directory to the list of C++ preprocessor include directories
32# for the entire project.
33# include_directories([AFTER|BEFORE] [SYSTEM] dir1 dir2 ...)
34INCLUDE_DIRECTORIES( ${cppad_SOURCE_DIR} )
35#
36# =============================================================================
37# Some system cmake language extensions
38# =============================================================================
39# CHECK_CXX_SOURCE_COMPILES(source variable)
40# Checks whether the code given in source will compile, link and run and
41# return zero status. You can set
42# CMAKE_REQUIRED_LIBRARIES, CMAKE_REQUIRED_FLAGS and CMAKE_REQUIRED_INCLUDES
43# accordingly if additional libraries or compiler flags are required.
44INCLUDE(CheckCXXSourceRuns)
45
46# ============================================================================
47# Some local cmake language
48# ============================================================================
49# dos_path_to_unix(dos_path unix_path)
50INCLUDE(cmake/dos_path_to_unix.cmake)
51#
52# add_to_list(variable_list constant_value)
53INCLUDE(cmake/add_to_list.cmake)
54#
55# command_line_arg(variable default type description)
56INCLUDE(cmake/command_line_arg.cmake)
57#
58# optional_package(package description)
59INCLUDE(cmake/optional_package.cmake)
60#
61# add_cppad_cxx_flags(target_name)
62INCLUDE(cmake/add_cppad_cxx_flags.cmake)
63#
64# check_source_runs(source variable)
65INCLUDE(cmake/check_source_runs.cmake)
66#
67# assert(variable)
68INCLUDE(cmake/assert.cmake)
69#
70# print_variable(variable)
71INCLUDE(cmake/print_variable.cmake)
72#
73# set_compile_flags( program_name debug_which source_list)
74INCLUDE(cmake/set_compile_flags.cmake)
75# =============================================================================
76# command line arguments
77# =============================================================================
78# cmake_install_datadir
79command_line_arg(cmake_install_datadir share STRING
80        "directory, below prefix, where cmake installs cppad data files"
81)
82# -----------------------------------------------------------------------------
83# cmake_install_docdir
84command_line_arg(cmake_install_docdir NOTFOUND STRING
85        "directory, below prefix, where cmake installs cppad documentation files"
86)
87# -----------------------------------------------------------------------------
88# cmake_install_includedirs
89command_line_arg(cmake_install_includedirs include STRING
90        "directories, below prefix, where cmake installs include files"
91)
92# -----------------------------------------------------------------------------
93# cmake_install_libdirs
94command_line_arg(cmake_install_libdirs lib STRING
95        "directories, below prefix, where cmake installs library files"
96)
97# -----------------------------------------------------------------------------
98# cppad_prefix
99command_line_arg(cppad_prefix /usr PATH
100        "cppad install prefix"
101)
102SET(CMAKE_INSTALL_PREFIX "${cppad_prefix}"
103        CACHE PATH "value copied from cppad_prefix" FORCE
104)
105IF( cppad_has_cmake_install )
106        MESSAGE(FATAL_ERROR
107                "cmake_install_prefix has been changed to cppad_prefix"
108        )
109ENDIF( cppad_has_cmake_install )
110# -----------------------------------------------------------------------------
111# cppad_postfix
112command_line_arg(cppad_postfix NOTFOUND STRING
113        "cppad install postfix"
114)
115IF( cmake_install_postfix )
116        MESSAGE(FATAL_ERROR
117                "cmake_install_postfix has been changed to cppad_postfix"
118        )
119ENDIF( cmake_install_postfix )
120# -----------------------------------------------------------------------------
121# cppad_cxx_flags
122command_line_arg(cppad_cxx_flags NOTFOUND STRING
123        "compile flags used with cppad (besides debug, release, and profile flags)"
124)
125# -----------------------------------------------------------------------------
126# cppad_profile_flag
127command_line_arg(cppad_profile_flag NOTFOUND STRING
128        "compile flag used to compile and link a profile version of a program"
129)
130# -----------------------------------------------------------------------------
131# External package prefixes with warnings
132SET(system_include FALSE)
133#
134# adolc_prefix
135optional_package(adolc ${system_include} "adolc install prefix")
136#
137# colpack_prefix
138optional_package(colpack ${system_include} "colpack install prefix")
139#
140# ipopt_prefix
141optional_package(ipopt ${system_include} "ipopt install prefix")
142#
143# sacado_prefix
144optional_package(sacado ${system_include} "sacado install prefix")
145# -----------------------------------------------------------------------------
146# External package prefixes without warnings
147SET(system_include TRUE)
148#
149# eigen_prefix
150optional_package(eigen ${system_include} "eigen install prefix")
151#
152# fadbad_prefix
153optional_package(fadbad ${system_include} "fadbad install prefix")
154# -----------------------------------------------------------------------------
155# cppad_testvector
156command_line_arg(cppad_testvector cppad STRING
157        "Namespace of vector used for testing, one of: boost, cppad, eigen, std"
158)
159#
160# cppad_max_num_threads
161command_line_arg(cppad_max_num_threads 48 STRING
162        "maximum number of threads that CppAD can use use"
163)
164# cppad_sparse_list
165IF( cppad_sparse_list )
166        MESSAGE(FATAL_ERROR
167                "cppad_sparse_list = ${cppad_sparse_list}"
168                ": this command line argument has been removed"
169        )
170ENDIF( cppad_sparse_list )
171#
172# cppad_tape_id_type
173command_line_arg(cppad_tape_id_type "unsigned int" STRING
174        "type used to identify different tapes, size must be <= sizeof(size_t)"
175)
176#
177# cppad_tape_addr_type
178command_line_arg(cppad_tape_addr_type "unsigned int" STRING
179"type used to identify variables on one tape, size must be <= sizeof(size_t)"
180)
181#
182# cppad_debug_which
183command_line_arg(cppad_debug_which "debug_all" STRING
184        "debug_even, debug_odd, debug_all, or debug_none"
185)
186# cppad_deprecated
187command_line_arg(cppad_deprecated NO BOOL
188        "this symbol must be NO and is not currently being used"
189)
190IF( cppad_deprecated )
191        MESSAGE(FATAL_ERROR "cppad_deprecated must be NO" )
192ENDIF( cppad_deprecated )
193# =============================================================================
194# cppad_has_colpack, colpack_libs, cppad_lib
195#
196IF( cppad_has_colpack )
197        SET(cppad_has_colpack 1)
198        SET( colpack_libs "ColPack" )
199        SET( cppad_lib "cppad_lib" )
200ELSE( cppad_has_colpack )
201        SET(cppad_has_colpack 0)
202        SET( colpack_libs "" )
203        SET( cppad_lib "" )
204ENDIF( cppad_has_colpack )
205# =============================================================================
206# automated system configuration
207# =============================================================================
208# CMAKE_CXX_FLAGS
209# remove Visual Studio C++ warning level if specified in cppad_cxx_flags
210IF ( cppad_cxx_flags MATCHES "/W[0-9]" )
211        STRING( REGEX REPLACE "/W[0-9]" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} )
212ENDIF ( cppad_cxx_flags MATCHES "/W[0-9]" )
213print_variable(CMAKE_CXX_FLAGS)
214# -----------------------------------------------------------------------------
215# set cppad_abs_${middle_name} for middle_name equal to:
216#       includedir, liddir, datadir, docdir
217FOREACH(middle_names includedirs libdirs datadir docdir)
218        STRING(REGEX REPLACE "dirs" "dir" middle_name ${middle_names})
219        SET(middle_value NOTFOUND)
220        FOREACH(dir ${cmake_install_${middle_names}})
221                IF( NOT middle_value )
222                        SET(middle_value ${dir})
223                ENDIF( NOT middle_value )
224        ENDFOREACH(dir ${cmake_install_${middle_names}})
225        #
226        SET(tmp "${cppad_prefix}/${middle_value}" )
227        IF ( cppad_postfix )
228                SET(cppad_abs_${middle_name} ${tmp}/${cppad_postfix})
229        ELSE ( cppad_postfix )
230                SET(cppad_abs_${middle_name} ${tmp})
231        ENDIF ( cppad_postfix )
232ENDFOREACH(middle_names includedirs libdirs datadir docdir)
233# -----------------------------------------------------------------------------
234# boost_prefix
235FIND_PACKAGE(Boost)
236SET(cppad_has_boost 0)
237IF ( Boost_FOUND )
238        SET(cppad_has_boost 1)
239        #
240        # Extract the Boost prefix from Boost_INCLUDE_DIRS
241        #
242        # convert to using unix directory separator
243        dos_path_to_unix("${Boost_INCLUDE_DIRS}" boost_include_dirs)
244        #
245        # convert to just one directory
246        STRING(REGEX REPLACE
247                "([^ ]+).*" "\\1"
248                boost_include_dir "${boost_include_dirs}"
249        )
250        #
251        # extract part before last backslash
252        STRING(REGEX REPLACE
253                "([^ ]*)/[^/ ]*" "\\1"
254                boost_prefix "${boost_include_dir}"
255        )
256        print_variable(boost_prefix)
257        #
258        # add boost include directories
259        FOREACH(dir ${cmake_install_includedirs})
260                IF( IS_DIRECTORY ${boost_prefix}/${dir} )
261                        INCLUDE_DIRECTORIES( ${boost_prefix}/${dir} )
262                        MESSAGE(STATUS "Found ${boost_prefix}/${dir}")
263                ENDIF( IS_DIRECTORY ${boost_prefix}/${dir} )
264        ENDFOREACH( dir )
265        #
266        # add boost link directories
267        FOREACH(dir ${cmake_install_libdirs})
268                IF( IS_DIRECTORY ${boost_prefix}/${dir} )
269                        LINK_DIRECTORIES( ${boost_prefix}/${dir} )
270                        MESSAGE(STATUS "Found ${boost_prefix}/${dir}")
271                ENDIF( IS_DIRECTORY ${boost_prefix}/${dir} )
272        ENDFOREACH( dir )
273ENDIF ( Boost_FOUND )
274# -----------------------------------------------------------------------------
275# ipopt_LIBRARIES and ipopt_LIBRARY_DIRS
276IF( cppad_has_ipopt )
277        FIND_PACKAGE(PkgConfig)
278        IF( NOT PKG_CONFIG_FOUND )
279                MESSAGE(FATAL_ERROR "Using ipopt_prefix but cannot find pkg-config")
280        ENDIF( NOT PKG_CONFIG_FOUND )
281        #
282        # Set the system environment variable PKG_CONFIG_PATH
283        FOREACH(dir ${cmake_install_libdirs})
284                IF(EXISTS "${ipopt_prefix}/${dir}/pkgconfig/ipopt.pc")
285                        SET( ENV{PKG_CONFIG_PATH} ${ipopt_prefix}/${dir}/pkgconfig )
286                ENDIF(EXISTS "${ipopt_prefix}/${dir}/pkgconfig/ipopt.pc")
287        ENDFOREACH(dir)
288        #
289        # pkg_check_modules(<PREFIX> [REQUIRED] <MODULE> [<MODULE>]*)
290        # ipopt_LIBRARIES      ... only the libraries (w/o the '-l')
291        # ipopt_LIBRARY_DIRS   ... the paths of the libraries (w/o the '-L')
292        pkg_check_modules(ipopt ipopt)
293        IF( NOT ipopt_FOUND )
294                MESSAGE(FATAL_ERROR
295"For all directories dir in cmake_install_libdirs, cannot find the file
296        ipopt_prefix/dir/pkgconfig/ipopt.pc
297where
298        ipopt_prefix = ${ipopt_prefix}
299        cmake_install_libdirs = ${cmake_install_libdirs}
300"
301                )
302        ENDIF( NOT ipopt_FOUND )
303ENDIF( cppad_has_ipopt )
304# =============================================================================
305# Currently building tests as normal executables
306# =============================================================================
307# The CMakeLists.txt file in the specified source directory is processed
308# before the current input file continues beyond this command.
309# add_subdirectory(source_dir [binary_dir] [EXCLUDE_FROM_ALL])
310#
311# Initialize list of tests as empty
312SET(check_depends "")
313#
314# directories with no check depends entries
315ADD_SUBDIRECTORY(cppad)
316ADD_SUBDIRECTORY(pkgconfig)
317IF( cppad_has_colpack )
318        ADD_SUBDIRECTORY(cppad_lib)
319ENDIF( cppad_has_colpack )
320#
321IF( NOT ( "${check_depends}" STREQUAL "" ) )
322        MESSAGE(FATAL_ERROR "Error in CMakeLists.txt scripts")
323ENDIF( NOT ( "${check_depends}" STREQUAL "" ) )
324#
325# directories with check depends entries
326ADD_SUBDIRECTORY(example)
327ADD_SUBDIRECTORY(introduction)
328ADD_SUBDIRECTORY(test_more)
329ADD_SUBDIRECTORY(speed)
330IF( cppad_has_ipopt )
331        ADD_SUBDIRECTORY(cppad_ipopt)
332ENDIF( cppad_has_ipopt )
333#
334ADD_CUSTOM_TARGET(check DEPENDS ${check_depends})
335MESSAGE(STATUS "make check: avialable")
336# ============================================================================
337# Copy a file to another location and modify its contents.
338# configure_file(InputFile OutputFile [COPYONLY] [ESCAPE_QUOTES] [@ONLY])
339CONFIGURE_FILE(
340        ${CMAKE_CURRENT_SOURCE_DIR}/bin/test_one.sh.in
341        ${CMAKE_CURRENT_SOURCE_DIR}/bin/test_one.sh
342)
343# =============================================================================
344# install procedure
345# =============================================================================
346# install(DIRECTORY dirs... DESTINATION <dir>
347#       [FILE_PERMISSIONS permissions...]
348#       [DIRECTORY_PERMISSIONS permissions...]
349#       [USE_SOURCE_PERMISSIONS] [OPTIONAL]
350#       [CONFIGURATIONS [Debug|Release|...]]
351#       [COMPONENT <component>] [FILES_MATCHING]
352#       [[PATTERN <pattern> | REGEX <regex>]
353#       [EXCLUDE] [PERMISSIONS permissions...]] [...]
354# )
355# Note a trailing / in the source directory name drops the source directory
356# name during the copy.
357#
358# During install copy all the cppad include files to
359# ${cppad_abs_includedir}/cppad
360INSTALL(
361        DIRECTORY "${CMAKE_SOURCE_DIR}/cppad/"
362        DESTINATION ${cppad_abs_includedir}/cppad
363        FILES_MATCHING PATTERN "*.hpp"
364)
365#
366# During install copy doc direcrory to cppad_abs_docdir/cppad
367IF ( cmake_install_docdir )
368        INSTALL( DIRECTORY "doc/" DESTINATION ${cppad_abs_docdir}/cppad )
369ENDIF ( cmake_install_docdir )
370#
371IF( ${cppad_deprecated} )
372        STRING( TOLOWER "${cppad_deprecated}" temp )
373        IF( "${temp}" STREQUAL "yes" )
374                MESSAGE(FATAL_ERROR
375                "cppad_deprecated = YES has been removed; see whats_new 2017-02-10."
376                )
377        ENDIF( "${temp}" STREQUAL "yes" )
378        MESSAGE(FATAL_ERROR
379                "cppad_deprecated = ${cppad_deprecated} not a valid choice"
380        )
381ENDIF( ${cppad_deprecated} )
Note: See TracBrowser for help on using the repository browser.