summaryrefslogtreecommitdiff
path: root/Source/WXDialog/CMakeLists.txt
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-19 10:56:24 -0400
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-19 10:56:24 -0400
commit1cce2ed6e781ca47244846c0a1d86fb2f62bf9ed (patch)
treea9032334f99364f3e25802df87760ec233b59690 /Source/WXDialog/CMakeLists.txt
parent000326237d58d7f0c5b7643088d5fe3fbf8e0d5d (diff)
downloadcmake-1cce2ed6e781ca47244846c0a1d86fb2f62bf9ed.tar.gz
Fix executable to be WIN32 on windows
Diffstat (limited to 'Source/WXDialog/CMakeLists.txt')
-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 6982121c0b..962e274b52 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)