diff options
-rw-r--r-- | CMakeVariables.make.in | 2 | ||||
-rw-r--r-- | Source/cmUnixMakefile.cxx | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/CMakeVariables.make.in b/CMakeVariables.make.in index bd5ea9d..07a6f1a 100644 --- a/CMakeVariables.make.in +++ b/CMakeVariables.make.in @@ -84,7 +84,7 @@ BIN_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/bin # set up the path to the rulesgen program CMAKE = @CMAKE_OBJ_DIR@/CMake/Source/CMakeBuildTargets KIT_OBJ = ${SRC_OBJ} ${EXTRA_KIT_OBJ} -BUILD_LIB_FILE = lib${ME}${ITK_LIB_EXT} + # ***** BEGIN VARIBLES THAT CAN BE OVERRIDDEN IN CMakeLocal.make.in ************** diff --git a/Source/cmUnixMakefile.cxx b/Source/cmUnixMakefile.cxx index 7feceaf..90c887b 100644 --- a/Source/cmUnixMakefile.cxx +++ b/Source/cmUnixMakefile.cxx @@ -82,7 +82,12 @@ void cmUnixMakefile::OutputMakefile(const char* file) } fout << "\n"; } - fout << "ME = " << this->GetLibraryName() << "\n\n"; + if(strlen(this->GetLibraryName()) > 0) + { + fout << "ME = " << this->GetLibraryName() << "\n\n"; + fout << "BUILD_LIB_FILE = lib${ME}${ITK_LIB_EXT}\n\n"; + } + for(int i =0; i < m_MakeVerbatim.size(); i++) { fout << m_MakeVerbatim[i] << "\n"; |