From 305937332a0e82fa19314dfa143cf4b9c056c511 Mon Sep 17 00:00:00 2001 From: DRC Date: Fri, 24 Jun 2011 03:51:02 +0000 Subject: [PATCH] Do not run libtool_create_control_file() on Windows. Windows does not like it. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4530 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- common/Xregion/CMakeLists.txt | 4 +++- common/network/CMakeLists.txt | 4 +++- common/rdr/CMakeLists.txt | 4 +++- common/rfb/CMakeLists.txt | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/common/Xregion/CMakeLists.txt b/common/Xregion/CMakeLists.txt index 4cc4f0dd..40ca97e4 100644 --- a/common/Xregion/CMakeLists.txt +++ b/common/Xregion/CMakeLists.txt @@ -1,4 +1,6 @@ add_library(Xregion STATIC Region.c) -libtool_create_control_file(Xregion) +if(UNIX) + libtool_create_control_file(Xregion) +endif() diff --git a/common/network/CMakeLists.txt b/common/network/CMakeLists.txt index 9f664de8..ddde5745 100644 --- a/common/network/CMakeLists.txt +++ b/common/network/CMakeLists.txt @@ -3,4 +3,6 @@ include_directories(${CMAKE_SOURCE_DIR}/common) add_library(network STATIC TcpSocket.cxx) -libtool_create_control_file(network) +if(UNIX) + libtool_create_control_file(network) +endif() diff --git a/common/rdr/CMakeLists.txt b/common/rdr/CMakeLists.txt index 6557932d..ee71a9bb 100644 --- a/common/rdr/CMakeLists.txt +++ b/common/rdr/CMakeLists.txt @@ -24,4 +24,6 @@ endif() target_link_libraries(rdr ${RDR_LIBRARIES}) -libtool_create_control_file(rdr) +if(UNIX) + libtool_create_control_file(rdr) +endif() diff --git a/common/rfb/CMakeLists.txt b/common/rfb/CMakeLists.txt index eddbaea4..c28b1ac9 100644 --- a/common/rfb/CMakeLists.txt +++ b/common/rfb/CMakeLists.txt @@ -94,4 +94,6 @@ add_library(rfb STATIC ${RFB_SOURCES}) target_link_libraries(rfb ${RFB_LIBRARIES}) -libtool_create_control_file(rfb) +if(UNIX) + libtool_create_control_file(rfb) +endif() -- 2.39.5