summaryrefslogtreecommitdiffstats
path: root/Source/CMakeLists.txt
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-08-22 20:16:05 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-08-22 20:16:05 (GMT)
commit0fdfab32d1c20c93dad0edc9e3f4b2b5cf4d0cf3 (patch)
tree94a56e95b0089689ca9cf6de6865dc955dd1009e /Source/CMakeLists.txt
parentc4076fb2878bb7ecf94528a29930cf2cf961b095 (diff)
downloadCMake-0fdfab32d1c20c93dad0edc9e3f4b2b5cf4d0cf3.zip
CMake-0fdfab32d1c20c93dad0edc9e3f4b2b5cf4d0cf3.tar.gz
CMake-0fdfab32d1c20c93dad0edc9e3f4b2b5cf4d0cf3.tar.bz2
BUG: borland needs to have BUILD_SHARED_LIBS on for executables to work with c++
Diffstat (limited to 'Source/CMakeLists.txt')
-rw-r--r--Source/CMakeLists.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index 5f839cf..a138680 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -1,5 +1,9 @@
CMAKE_MINIMUM_REQUIRED(VERSION 1.3)
+IF(WIN32)
+ SET(BUILD_SHARED_LIBS 1)
+ENDIF(WIN32)
+
SET(SRCS
cmake.cxx
cmakewizard.cxx
@@ -73,13 +77,9 @@ ENDIF (WIN32)
SET(SRCS ${SRCS} cmUnixMakefileGenerator.cxx cmUnixMakefileGenerator.h)
-
# 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
# the library is found here