Skip to content

Commit 2236a5b

Browse files
committed
fix SCL_ENABLE_COVERAGE
1 parent 35d54e1 commit 2236a5b

2 files changed

Lines changed: 12 additions & 11 deletions

File tree

CMakeLists.txt

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -116,16 +116,6 @@ IF(_orig_lang)
116116
SET(ENV{LANG} C)
117117
ENDIF(_orig_lang)
118118

119-
#---------------------------------------------------------------------
120-
# Testing option
121-
OPTION_WITH_DEFAULT( SCL_ENABLE_TESTING "Enable unittesting framework" OFF )
122-
IF(SCL_ENABLE_TESTING)
123-
if( NOT DEFINED SCL_BUILD_SCHEMAS )
124-
set( SCL_BUILD_SCHEMAS "ALL" ) #test all schemas, unless otherwise specified
125-
endif()
126-
INCLUDE(CTest)
127-
ENABLE_TESTING()
128-
ENDIF(SCL_ENABLE_TESTING)
129119

130120
#---------------------------------------------------------------------
131121
# Coverage option
@@ -141,6 +131,17 @@ IF(SCL_ENABLE_COVERAGE)
141131
SET(SCL_BUILD_TYPE "Debug" CACHE STRING "Build type required by testing framework" FORCE)
142132
ENDIF(SCL_ENABLE_COVERAGE)
143133

134+
#---------------------------------------------------------------------
135+
# Testing option
136+
OPTION_WITH_DEFAULT( SCL_ENABLE_TESTING "Enable unittesting framework" OFF )
137+
IF(SCL_ENABLE_TESTING)
138+
if( NOT DEFINED SCL_BUILD_SCHEMAS )
139+
set( SCL_BUILD_SCHEMAS "ALL" ) #test all schemas, unless otherwise specified
140+
endif()
141+
INCLUDE(CTest)
142+
ENABLE_TESTING()
143+
ENDIF(SCL_ENABLE_TESTING)
144+
144145
#---------------------------------------------------------------------
145146
# The following logic is what allows binaries to run successfully in
146147
# the build directory AND install directory. Thanks to plplot for

cmake/SCL_Utils.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ MACRO(SCL_ADDLIB libname srcs libs)
107107
add_library(${static_name} STATIC ${srcslist})
108108
DEFINE_DLL_EXPORTS(${static_name})
109109
if(NOT ${libs} MATCHES "NONE")
110-
target_link_libraries(${static_name} "${libslist}")
110+
target_link_libraries(${static_name} ${libslist})
111111
DEFINE_DLL_IMPORTS(${static_name} ${libslist} )
112112
endif(NOT ${libs} MATCHES "NONE")
113113
IF(NOT WIN32)

0 commit comments

Comments
 (0)