From: Fabrice GILOT Date: Fri, 16 Sep 2016 01:03:22 +0000 (+0800) Subject: CMakeLists: move config file generation to after LWS_HAVE_OPENSSL_ECDH_H X-Git-Tag: submit/tizen/20160930.050355~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=47671fe50433a344609d845e5876bfda168a81ba;p=platform%2Fupstream%2Flibwebsockets.git CMakeLists: move config file generation to after LWS_HAVE_OPENSSL_ECDH_H This is already fixed in v2.0 and master --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 972c005..83defae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -397,16 +397,6 @@ if (NOT LWS_HAVE_REALLOC) set(realloc rpl_realloc) endif() -# Generate the lws_config.h that includes all the public compilation settings. -configure_file( - "${PROJECT_SOURCE_DIR}/lws_config.h.in" - "${PROJECT_BINARY_DIR}/lws_config.h") - -# Generate the lws_config.h that includes all the private compilation settings. -configure_file( - "${PROJECT_SOURCE_DIR}/lws_config_private.h.in" - "${PROJECT_BINARY_DIR}/lws_config_private.h") - if (MSVC) # Turn off stupid microsoft security warnings. add_definitions(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE) @@ -734,6 +724,18 @@ if (LWS_WITH_LIBUV) list(APPEND LIB_LIST ${LIBUV_LIBRARIES}) endif() + +# Generate the lws_config.h that includes all the public compilation settings. +configure_file( + "${PROJECT_SOURCE_DIR}/lws_config.h.in" + "${PROJECT_BINARY_DIR}/lws_config.h") + +# Generate the lws_config.h that includes all the private compilation settings. +configure_file( + "${PROJECT_SOURCE_DIR}/lws_config_private.h.in" + "${PROJECT_BINARY_DIR}/lws_config_private.h") + + # # Platform specific libs. #