source: trunk/cmake/add_cppad_cxx_flags.cmake @ 3803

Last change on this file since 3803 was 3803, checked in by bradbell, 4 years ago

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

commit 8dd8b10d36b325a3f4bbf3c03f1ea00e288331ae
Author: Brad Bell <bradbell@…>
Date: Fri Mar 18 20:25:17 2016 -0700

  1. replace multiple */test_one.sh.in by one bin/test_one.sh.
  2. remove test_one.sh.in from auto-tools build.

commit e524af11d04938103d42963e393b3637616dc278
Author: Brad Bell <bradbell@…>
Date: Fri Mar 18 10:02:38 2016 -0700

Move solve.cpp -> ipopt_solve.cpp so has same name as its directory.

commit 4714099e4eef9226536760e206f988440eec2f48
Author: Brad Bell <bradbell@…>
Date: Fri Mar 18 09:50:37 2016 -0700

Use system include option to supress all warnings in eigen and fadbad source.

  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: add_cppad_cxx_flags.cmake 3803 2016-03-19 05:07:48Z bradbell $
2# -----------------------------------------------------------------------------
3# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-16 Bradley M. Bell
4#
5# CppAD is distributed under multiple licenses. This distribution is under
6# the terms of the
7#                     Eclipse Public License Version 1.0.
8#
9# A copy of this license is included in the COPYING file of this distribution.
10# Please visit http://www.coin-or.org/CppAD/ for information on other licenses.
11# -----------------------------------------------------------------------------
12# add_cppad_cxx_flags(target_name)
13#
14# target_name: (in)
15# If target_name ends in _sacado,
16# the compiler flags for this target are set to
17#       cppad_cxx_flags_sacado
18# Otherwise, the compiler flags for this target are set to
19#       cppad_cxx_flags.
20#
21# Side Effects:
22# The variable flags is used for scratch space and not
23# defined after the completion of this macro.
24#
25MACRO(add_cppad_cxx_flags target_name)
26        #
27        SET(flags ${cppad_cxx_flags})
28        IF( ${target_name} MATCHES ".*_sacado$" )
29                SET(flags "${cppad_cxx_flags_sacado}")
30                MESSAGE(STATUS
31                        "${target_name} cxx_flags = ${cppad_cxx_flags_sacado}"
32                )
33        ENDIF( ${target_name} MATCHES ".*_sacado$" )
34        IF( flags )
35                SET_TARGET_PROPERTIES(
36                        ${target_name} PROPERTIES COMPILE_FLAGS "${flags}"
37                )
38        ELSE( flags )
39                SET_TARGET_PROPERTIES(
40                        ${target_name} PROPERTIES COMPILE_FLAGS ""
41                )
42        ENDIF( flags )
43ENDMACRO(add_cppad_cxx_flags)
Note: See TracBrowser for help on using the repository browser.