403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/science/dakota/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/science/dakota/files/patch-CMakeLists.txt
--- CMakeLists.txt.orig	2021-11-05 17:27:37 UTC
+++ CMakeLists.txt
@@ -258,9 +258,11 @@ if(ENABLE_DAKOTA_DOCS)
 endif()
 
 # Legacy examples
-add_subdirectory(examples)
+if (FREEBSD_ENABLE_EXAMPLES)
+  add_subdirectory(examples)
+endif()
 # New examples library, taking care to guard against empty directory
-if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/dakota-examples/CMakeLists.txt")
+if(FREEBSD_ENABLE_EXAMPLES AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/dakota-examples/CMakeLists.txt")
   add_subdirectory(dakota-examples)
 endif()
 
@@ -284,19 +286,23 @@ install(FILES INSTALL LICENSE COPYRIGHT README
   DESTINATION ${DAKOTA_TOPFILES_INSTALL}
   )
 
+if (FREEBSD_ENABLE_EXAMPLES)
 install(DIRECTORY examples DESTINATION ${DAKOTA_EXAMPLES_INSTALL}
   USE_SOURCE_PERMISSIONS
   PATTERN "CMakeLists.txt" EXCLUDE
   PATTERN "*.c" EXCLUDE 
   PATTERN "*.f" EXCLUDE 
   )
+endif()
 
+if (FREEBSD_INSTALL_TESTS)
 install(DIRECTORY test DESTINATION ${DAKOTA_TEST_INSTALL}
   PATTERN "CMakeLists.txt" EXCLUDE
   PATTERN "*.c" EXCLUDE 
   PATTERN "*.cpp" EXCLUDE 
   PATTERN "*.f" EXCLUDE 
   )
+endif()
 
 # Final CPack settings
 dakota_cpack_finalize()

Youez - 2016 - github.com/yon3zu
LinuXploit