Skip to content

Commit 5c7e63c

Browse files
committed
Fix macro comments. This approach to managing the targets varies from the old EXCLUDE_OR_INSTALL setup in that by default the testable targets are not added to the 'all' build - in other works, 'make' will make just the main stepcode targets. The testable targets are available individually, and if SC_ENABLE_TESTING is enabled they *will* be added to the 'all' target, but by default they are not compiled in the basic build.
1 parent 0b456a8 commit 5c7e63c

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

cmake/SC_Targets.cmake

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@ macro(DEFINE_DLL_IMPORTS tgt libs)
2828
endif(MSVC OR BORLAND)
2929
endmacro(DEFINE_DLL_IMPORTS tgt libs)
3030

31-
#SC_ADDEXEC(execname "source files" "linked libs" ["TESTABLE"] ["MSVC flag" ...])
32-
# optional 4th argument of "TESTABLE", passed to EXCLUDE_OR_INSTALL macro
33-
# optional args can also be used by MSVC-specific code, but it looks like these two uses
34-
# will not conflict because the MSVC args must contain "STRICT"
31+
#SC_ADDEXEC(execname "source files" "linked libs" ["TESTABLE"] ["NO_INSTALL"])
3532
macro(SC_ADDEXEC execname srcslist libslist)
3633

3734
string(TOUPPER "${execname}" EXECNAME_UPPER)
@@ -66,10 +63,7 @@ macro(SC_ADDEXEC execname srcslist libslist)
6663

6764
endmacro(SC_ADDEXEC execname srcslist libslist)
6865

69-
#SC_ADDLIB(libname "source files" "linked libs" ["TESTABLE"] ["MSVC flag" ...])
70-
# optional 4th argument of "TESTABLE", passed to EXCLUDE_OR_INSTALL macro
71-
# optional args can also be used by MSVC-specific code, but it looks like these two uses
72-
# will not conflict because the MSVC args must contain "STRICT"
66+
#SC_ADDLIB(libname "source files" "linked libs" ["TESTABLE"] ["NO_INSTALL"] ["SO_SRCS ..."] ["STATIC_SRCS ..."])
7367
macro(SC_ADDLIB libname srcslist libslist)
7468

7569
string(TOUPPER "${libname}" LIBNAME_UPPER)

0 commit comments

Comments
 (0)