diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-09-19 14:56:24 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-09-19 14:56:24 (GMT) |
commit | 1cce2ed6e781ca47244846c0a1d86fb2f62bf9ed (patch) | |
tree | a9032334f99364f3e25802df87760ec233b59690 | |
parent | 000326237d58d7f0c5b7643088d5fe3fbf8e0d5d (diff) | |
download | CMake-1cce2ed6e781ca47244846c0a1d86fb2f62bf9ed.zip CMake-1cce2ed6e781ca47244846c0a1d86fb2f62bf9ed.tar.gz CMake-1cce2ed6e781ca47244846c0a1d86fb2f62bf9ed.tar.bz2 |
Fix executable to be WIN32 on windows
-rw-r--r-- | Source/WXDialog/CMakeLists.txt | 6 |
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) |