From 1a67af3115eb16383f1e5b806426f37e7ea4d818 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Sun, 12 Apr 2015 23:25:20 +0200 Subject: [PATCH] Fix configuraion issues. --- CMakeLists.txt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e6a906b59..05862d9f1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -136,7 +136,6 @@ if ("${CMAKE_BUILD_TYPE}" STREQUAL "Release") endif () createDefaultCacheConfig() -configureProject() # Force chromium. set (ETH_HAVE_WEBENGINE 1) @@ -263,6 +262,8 @@ elseif (BUNDLE STREQUAL "user") set(TESTS OFF) endif () +configureProject() + # Default CMAKE_BUILD_TYPE to "Release". set(CMAKE_BUILD_TYPE CACHE STRING "Release") if ("x${CMAKE_BUILD_TYPE}" STREQUAL "x") @@ -272,7 +273,11 @@ endif () # Default TARGET_PLATFORM to "linux". set(TARGET_PLATFORM CACHE STRING "linux") if ("x${TARGET_PLATFORM}" STREQUAL "x") - set(TARGET_PLATFORM "linux") + if (WIN32) + set(TARGET_PLATFORM "windows") + else () + set(TARGET_PLATFORM "linux") + endif () endif () message("------------------------------------------------------------------------") @@ -308,7 +313,7 @@ include(EthCompilerSettings) message("-- CXXFLAGS: ${CMAKE_CXX_FLAGS}") -# this must be an include, as a function it would messs up with variable scope! +# this must be an include, as a function it would mess up with variable scope! include(EthDependencies) include(EthExecutableHelper)