mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
CMake fix but where Perl not found on Windows
This commit is contained in:
parent
0b9c27222a
commit
77f4d162a0
@ -6,8 +6,6 @@
|
||||
|
||||
cmake_minimum_required(VERSION 3.1.0)
|
||||
|
||||
set(GNUWIN32_DIR D:/LyX/lyx-unstable/lyx-windows-deps-msvc2017)
|
||||
|
||||
set(LYX_PROJECT LyX)
|
||||
# Instruct cmake to not use gnu extensions,
|
||||
# this prevents the mix of '-std=c++*' and '-std=gnu++*' flags
|
||||
@ -106,9 +104,6 @@ endif()
|
||||
include(LyXMacros)
|
||||
include(LyXDestinations)
|
||||
|
||||
# Try to get some informations from configure.ac
|
||||
include(LyXPaths)
|
||||
|
||||
# Value of USE_POSIX_PACKAGING is needed in determineversionandbuildtype()
|
||||
if(WIN32)
|
||||
set(CMAKE_PREFIX_PATH Specify-path-to-Qt CACHE PATH "Used Qt version")
|
||||
@ -252,6 +247,9 @@ LYX_OPTION(DEPENDENCIES_DOWNLOAD "Download dependencies for MSVC 10" OFF MSVC)
|
||||
LYX_OPTION(DMG "Build as Mac bundle, needed for .dmg (experimental) " OFF MAC)
|
||||
LYX_OPTION(COCOA "Use Cocoa on Mac" OFF MAC)
|
||||
|
||||
# Try to get some informations from configure.ac
|
||||
include(LyXPaths)
|
||||
|
||||
|
||||
if(help OR HELP)
|
||||
message(STATUS)
|
||||
@ -884,6 +882,7 @@ endforeach()
|
||||
|
||||
if(GNUWIN32_DIR)
|
||||
list(APPEND CMAKE_PROGRAM_PATH "${GNUWIN32_DIR}/Python" )
|
||||
list(APPEND CMAKE_PROGRAM_PATH "${GNUWIN32_DIR}/Perl/bin" )
|
||||
endif()
|
||||
|
||||
# Search for python default version first
|
||||
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (c) 2006, Peter Kümmel, <syntheticpp@gmx.net>
|
||||
# Copyright (c) 2006, Peter Kümmel, <syntheticpp@gmx.net>
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
@ -54,11 +54,10 @@ if(WINDEPS)
|
||||
set(QT_RCC_EXECUTABLE "${WINDEPSDIR}/qt-4/bin/rcc.exe" CACHE STRING "Qt4 rcc executable" FORCE)
|
||||
endif()
|
||||
|
||||
find_package(GNUWIN32 REQUIRED)
|
||||
if(LYX_3RDPARTY_BUILD)
|
||||
find_package(GNUWIN32)
|
||||
file(TO_CMAKE_PATH "$ENV{PROGRAMFILES}" _prog_path)
|
||||
else()
|
||||
find_package(GNUWIN32 REQUIRED)
|
||||
|
||||
file(TO_CMAKE_PATH "$ENV{PROGRAMFILES}" _prog_path)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user