Skip to content

Commit 9531207

Browse files
committed
cmake BUGFIX fix missing license details
1 parent 89da6d9 commit 9531207

File tree

1 file changed

+27
-8
lines changed

1 file changed

+27
-8
lines changed

CMakeModules/FindCMocka.cmake

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,31 @@
1212
#=============================================================================
1313
# Copyright (c) 2011-2012 Andreas Schneider <[email protected]>
1414
#
15-
# Distributed under the OSI-approved BSD License (the "License");
16-
# see accompanying file Copyright.txt for details.
15+
# Distributed under the OSI-approved BSD License (the "License").
16+
#
17+
# Redistribution and use in source and binary forms, with or without
18+
# modification, are permitted provided that the following conditions
19+
# are met:
20+
#
21+
# 1. Redistributions of source code must retain the copyright
22+
# notice, this list of conditions and the following disclaimer.
23+
# 2. Redistributions in binary form must reproduce the copyright
24+
# notice, this list of conditions and the following disclaimer in the
25+
# documentation and/or other materials provided with the distribution.
26+
# 3. The name of the author may not be used to endorse or promote products
27+
# derived from this software without specific prior written permission.
28+
#
29+
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
30+
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
31+
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
32+
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
33+
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
34+
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35+
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36+
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37+
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
38+
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1739
#
18-
# This software is distributed WITHOUT ANY WARRANTY; without even the
19-
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20-
# See the License for more information.
2140
#=============================================================================
2241
#
2342

@@ -30,17 +49,17 @@ find_path(CMOCKA_INCLUDE_DIR
3049

3150
find_library(CMOCKA_LIBRARY
3251
NAMES
33-
cmocka
52+
cmocka cmocka_shared
3453
PATHS
3554
${CMOCKA_ROOT_DIR}/include
3655
)
3756

38-
if(CMOCKA_LIBRARY)
57+
if (CMOCKA_LIBRARY)
3958
set(CMOCKA_LIBRARIES
4059
${CMOCKA_LIBRARIES}
4160
${CMOCKA_LIBRARY}
4261
)
43-
endif()
62+
endif (CMOCKA_LIBRARY)
4463

4564
include(FindPackageHandleStandardArgs)
4665
find_package_handle_standard_args(CMocka DEFAULT_MSG CMOCKA_LIBRARIES CMOCKA_INCLUDE_DIR)

0 commit comments

Comments
 (0)