summaryrefslogtreecommitdiffstats
path: root/Source/WXDialog
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-19 14:56:24 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-19 14:56:24 (GMT)
commit1cce2ed6e781ca47244846c0a1d86fb2f62bf9ed (patch)
treea9032334f99364f3e25802df87760ec233b59690 /Source/WXDialog
parent000326237d58d7f0c5b7643088d5fe3fbf8e0d5d (diff)
downloadCMake-1cce2ed6e781ca47244846c0a1d86fb2f62bf9ed.zip
CMake-1cce2ed6e781ca47244846c0a1d86fb2f62bf9ed.tar.gz
CMake-1cce2ed6e781ca47244846c0a1d86fb2f62bf9ed.tar.bz2
Fix executable to be WIN32 on windows
Diffstat (limited to 'Source/WXDialog')
-rw-r--r--Source/WXDialog/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/WXDialog/CMakeLists.txt b/Source/WXDialog/CMakeLists.txt
index 6982121..962e274 100644
--- a/Source/WXDialog/CMakeLists.txt
+++ b/Source/WXDialog/CMakeLists.txt
@@ -19,7 +19,11 @@ IF ( CMAKE_WX_CAN_COMPILE )
INCLUDE_DIRECTORIES(${CMake_SOURCE_DIR}/Source)
- ADD_EXECUTABLE(wxCMakeSetup ${WX_SRCS})
+ IF(WIN32)
+ SET(WIN32_EXECUTABLE WIN32)
+ ENDIF(WIN32)
+
+ ADD_EXECUTABLE(wxCMakeSetup ${WIN32_EXECUTABLE} ${WX_SRCS})
TARGET_LINK_LIBRARIES(wxCMakeSetup ${WXWINDOWS_LIBRARY})
TARGET_LINK_LIBRARIES(wxCMakeSetup CMakeLib)