Browse Source

BUG: borland needs to have BUILD_SHARED_LIBS on for executables to work with c++

Bill Hoffman 23 years ago
parent
commit
0fdfab32d1
1 changed files with 6 additions and 6 deletions
  1. 6 6
      Source/CMakeLists.txt

+ 6 - 6
Source/CMakeLists.txt

@@ -1,5 +1,9 @@
 CMAKE_MINIMUM_REQUIRED(VERSION 1.3)
 CMAKE_MINIMUM_REQUIRED(VERSION 1.3)
 
 
+IF(WIN32)
+  SET(BUILD_SHARED_LIBS 1)
+ENDIF(WIN32)
+
 SET(SRCS
 SET(SRCS
 cmake.cxx
 cmake.cxx
 cmakewizard.cxx
 cmakewizard.cxx
@@ -73,13 +77,9 @@ ENDIF (WIN32)
 
 
 SET(SRCS ${SRCS} cmUnixMakefileGenerator.cxx cmUnixMakefileGenerator.h)
 SET(SRCS ${SRCS} cmUnixMakefileGenerator.cxx cmUnixMakefileGenerator.h)
 
 
-
 # create a library used by the command line and the GUI
 # create a library used by the command line and the GUI
-IF (WIN32)
-  ADD_LIBRARY(CMakeLib SHARED ${SRCS})
-ELSE (WIN32)
-  ADD_LIBRARY(CMakeLib ${SRCS})
-ENDIF (WIN32)
+ADD_LIBRARY(CMakeLib ${SRCS})
+
 
 
 # always link in the library
 # always link in the library
 # the library is found here
 # the library is found here