projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix includes
[quassel.git]
/
CMakeLists.txt
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
291e21c
..
63d5f5f
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-23,6
+23,7
@@
project(QuasselIRC)
project(QuasselIRC)
+include(CheckFunctionExists)
include(CheckIncludeFile)
# cmake 2.6.2 is required for KDE >=4.2 and should be widespread enough now
include(CheckIncludeFile)
# cmake 2.6.2 is required for KDE >=4.2 and should be widespread enough now
@@
-384,8
+385,8
@@
if(WIN32)
link_libraries(imm32 winmm dbghelp Secur32) # missing by default :/
if(MSVC)
set(CMAKE_EXE_LINKER_FLAGS_RELWITHDEBUGINFO "/debug /INCREMENTAL:YES /NODEFAULTLIB:libcmt /DEFAULTLIB:msvcrt")
link_libraries(imm32 winmm dbghelp Secur32) # missing by default :/
if(MSVC)
set(CMAKE_EXE_LINKER_FLAGS_RELWITHDEBUGINFO "/debug /INCREMENTAL:YES /NODEFAULTLIB:libcmt /DEFAULTLIB:msvcrt")
- set(CMAKE_EXE_LINKER_FLAGS_DEBUG "
${CMAKE_EXE_LINKER_FLAGS_RELWITHDEBUGINFO}
")
- set(CMAKE_EXE_LINKER_FLAGS_DEBUGFULL "${CMAKE_EXE_LINKER_FLAGS_
RELWITHDEBUGINFO
}")
+ set(CMAKE_EXE_LINKER_FLAGS_DEBUG "
/debug /INCREMENTAL:YES /NODEFAULTLIB:libcmt
")
+ set(CMAKE_EXE_LINKER_FLAGS_DEBUGFULL "${CMAKE_EXE_LINKER_FLAGS_
DEBUG
}")
link_libraries(Version dwmapi shlwapi)
endif(MSVC)
if(HAVE_SSL AND STATIC)
link_libraries(Version dwmapi shlwapi)
endif(MSVC)
if(HAVE_SSL AND STATIC)
@@
-398,10
+399,12
@@
if(HAVE_INDICATEQT)
add_definitions(-DXDG_APPS_INSTALL_DIR=${XDG_APPS_INSTALL_DIR})
endif(HAVE_INDICATEQT)
add_definitions(-DXDG_APPS_INSTALL_DIR=${XDG_APPS_INSTALL_DIR})
endif(HAVE_INDICATEQT)
-CHECK_FUNCTION_EXISTS(umask HAVE_UMASK)
-if(HAVE_UMASK)
- add_definitions(-DHAVE_UMASK)
-endif(HAVE_UMASK)
+if(NOT WIN32)
+ check_function_exists(umask HAVE_UMASK)
+ if(HAVE_UMASK)
+ add_definitions(-DHAVE_UMASK)
+ endif(HAVE_UMASK)
+endif(NOT WIN32)
# We need to create a version.gen
# For this, we create our genversion binary and make sure it is run every time.
# We need to create a version.gen
# For this, we create our genversion binary and make sure it is run every time.