Skip to content

Instantly share code, notes, and snippets.

@prism-lab
prism-lab / cmakelists.txt
Created July 20, 2020 11:45
CMake multiple line comments.
cmake_minimum_required(VERSION 3.0.0 FATAL_ERROR) # v3 and above can handle this.
# Single line comment.
#[[
This
is
the
multiple
line
@prism-lab
prism-lab / clion-eval-reset-windows.md
Created July 2, 2020 04:25
How to reset Clion evaluation trial on Windows but keep the IDE settings intact.

Env: Windows 10 Clion 2020.1.2 installed via jetbrains toolbox(other install methods should be ok too)

Solution:

  1. Delete the Registry key: Computer\HKEY_CURRENT_USER\SOFTWARE\JavaSoft\Prefs\jetbrains\clion
  2. Delete C:\Users\$your-username\AppData\Roaming\JetBrains\CLion2020.1\eval folder.
  3. Delete C:\Users\$your-username\AppData\Roaming\JetBrains\CLion2020.1\options\other.xml or open up this file and try to get rid of eval references.
  4. See you in a month :)