File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -116,16 +116,6 @@ IF(_orig_lang)
116116 SET (ENV{LANG} C)
117117ENDIF (_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 )
142132ENDIF (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
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments